Calculating a reasonably realistic cruising altitude

Thank you for your reply. Do you know how it’s done in the real world? Is this an automatized process nowadays?