Ogg's formula