Mathematicians create a formula for perfect Christmas Day