How to calculate loan payments and costs

How to calculate loan payments and costs