The calculation of RTP in a slot game is actually straightforward. All you need to do is calculate the total amount of money that is returned to players divided by the total amount that is gambled by the player.