How do pilots calculate the temperature to put Into the FMS for an FLX takeoff?
For Airbus Aircraft you use a tool from Airbus where you put in data like wind, air temperature, pressure, weight, runway characteristics (length, heading, elevation, etc)  and other elements that calculates the flex temperature. It also gives you some other parameter like required runway length among others.