The number of credits in a slot machine can be calculated as follows: the total bet (in coins) multiplied by the multiplier.