My project is paused - how do I know how many credits I will need?

My free plan ran out of credits how do I know how many credits I will need? how is a credit consumed?