added new date mode calculations