fixed formula to get FPS