I have no idea except the above mentioned wild guess...
So, the whole thing is a double wild guess. You can plan departure performance based on personal experience, improve gradient by keeping flaps, thrust and not accelerating until clear of restrictions and inform ATC if you actually see, that the aircraft is not able to keep the required gradient. That's what I do, and would be glad to see if someone has a more scientific way to do it.