The formula, (C x R x ZZ) / ((Tt + D) x St) + (P x Pr) > 400, can be used to calculate the happiest day of the year.