yearlyFraction function

Calculate the fraction of a year given by a value