Updated the date calculation in the API. Everything should be very sound now.