How is the real cost of a loan calculated