added test credit calculator