moved due date calculation to the client to get rid of time zone bugs due to server being in UTC.