FPS calculation