Let's say the number of days is d (as stated in the question). there are always 24 hours in a day, so the amount of hours in d days has to be 24*d. since you also have the six hours, this can be written as 24*d + 6 = the number of hours in d days and six hours.