time Fitting Macro