added code for max loan for customer