tidied number of days calculation lines