dielFraction function

Calculate the fraction of a day given by a value