Feature/subtract credits

Feature/subtract credits
use IsNaN() if you want to allow the value 0.