The calculations are much too complicated.
That's why you have a group of geniuses on the ground, their role is to calculate the gradient and limit your weights if required.
We limit the landing weight based on the Missed Approach Gradient for certain airports.
Mutt