Deductions & credits

do you figure the fmv as what i paid for my home and then what the insurance paid me?  What if the amount the insurance paid me is more than what i paid for the home.  or is it what the house would sell for a the time of the fire.