calculate_fg missing