Hi @Hannah, when you stop your instance all your acquired credits are removed. When you relaunch an instance you have zero acquired credits and only left with launch credits.
So basically your CPU credit balance increases if the credits spent are less than credits earned in the first 5-minute interval for starting the instance and vice versa.
Mathematically your earned credits can be calculated using the following formula: