Hi there! Frame rate, FPS, means “frames per second”, so basically, to know what duration (milliseconds) each frame should have, you can divide the number of milliseconds in one second (1000) with your desired frame rate:
1000ms / 60fps ≈ 16 milliseconds per frame
Same thing for 30fps:
1000ms / 30fps ≈ 33 milliseconds per frame