calc fmr and fnmr