Simple credit calculator