MTOW calculator

Sets the quantity of the service to the MTOW of the aircraft. The target quantity is set in tons by default, but can be set in any unit.

Optional properties

TargetUnit (any weight-based unit, default=ton)
The target unit to convert the aircrafts maximum takeoff weight to.

QuantityUnit (any weight-based unit, default=TargetUnit, so ton if none given)
The unit to show on the invoice as quantity. Should only be used in combination with TargetUnit. For an aircraft of 12345kg, setting the targetUnit to 'ton' and the quantityUnit to 'kg', the result would be 13000. Setting the targetUnit to kg and the quantityUnit to ton would result in 12.345 (with a decimal point).

RoundingMethod (Ceiling, Floor or NearestInteger. Default=Ceiling)
When converting the maximum takeoff weight to another unit, this indicates if fractional values should be always rounded up, rounded down or rounded towards the nearest integer. The default is method is ceiling as usually, airports always round up to the next ton, so 5001kg becomes 6 ton.

Above (integer; default=0)
Returns only the number of units above this limit. This setting works on targetUnits

Upto (integer; default not set)
Ingores any weight above this number of units. This setting works on targetUnits.