I finally have the insurance calculations working