The FormatPeriod function is implemented that converts a given number in minutes to the format HH:mm:ss, in case the value exceeds 24 hours, the format changes to D.HH:mm:ss (the number of days is prepended).