add util of date calculation