Share logic with client and server to calculate left days from ms.