How do you calculate the amount to deposit?