Calculates day id, day name and day number