Math using CurrentDate

I have a solution that uses javascript for my immediate needs.I'm still interested in hearing an explanation and any other solutions.Thanks again.

Discussions have been disabled for this post