finished math formulas, they will print correct values now for all fields