How is Mortgage Insurance Calculated

How Is Mortgage Insurance Calculated?