Correct call of midnightFormula in Sphere.java