I understand that with a mortgage, the early payments are mostly against the loan's interest, while the later payments are progressively against more of the principle. For a given mortgage, how do you calculate the amount of a given payment that will be applied to the interest vs the principle?