CalcFormType now works