Add date calculation functions