When the policy is terminated midterm by the insurance company, the earned premium is calculated only for the period coverage was provided.