calculates Fvar given a light curve