The exact formula for neutrino oscillations