correct computation of minutes between two dates