date calculation to view in report