Calculate how much credit you will need