Was that the first or second derivative? And are you using partial derivative as wll (with the variable bein the Moon's fill state). Zeev