What is the credit loan amount calculated based on?