User blog comment:Tuner King 5/Help plz/@comment-24808864-20160112230745/@comment-24808864-20160113013432

I am sorry, I missed your reply in the middle!

If you are allowed to treat that monster factorial as a constant, the problem is much easier! Presumably you would be approximating that number by "one" (since 30 is much smaller than 365) and that can ease the calculation!

I will work on this a little later if I can get some time, you might be able to pull this off!

(But I do "think" you actually want a second derivative here still)