(via Shores of the Dirac Sea)
But what the f(t) function looks like? On my opinion, in the vicinity of deadline it may be estimated as
f(t)=Floor(0.5*Cos(t^2) + 1),
with Floor(x) giving the greatest integer less or equal to x.
Are they some less rough approximations?