How to use current time in a calculation

This should give you more idea