computing of date is more generic