Defense = 8 + FLOOR(VIT/2) + FLOOR[ (BaseDefense + DefenseBonusJobTrait) * RaceDefenseBoost% ]
Evasion = FLOOR(AGI/2) + FLOOR[ (BaseEvasion + EvasionBonusJobTrait) * RaceEvasionBoost% ]
RaceDefenseBoost and RaceEvasionBoost are "workaround" terms used in last resort when nothing match, for example on Antlions and Bugards defense...(might need verification)
DefenseBonusJobTrait and EvasionBonusJobTrait are like for players, depending on level and Main/Sub job = PLD or WAR for Def; and THF, DNC or PUP for Eva.
BaseDefense and BaseEvasion functions are affine FLOOR[Slope*(Level-1)+Offset] and coefficients depend on rank ranging from A to E :
lvl50 and below :
Type A : (slope;offset) = (3;6)
Type B : (slope;offset) = (2.9;5)
Type C : (slope;offset) = (2.8;5)
Type D : (slope;offset) = (2.7;4)
Type E : (slope;offset) = (2.5;4)
lvl51 and above :
Type A : (slope;offset) = (153;5)
Type B : (slope;offset) = (147;4.9)
Type C : (slope;offset) = (142;4.8 )
Type D : (slope;offset) = (136;4.7)
Type E : (slope;offset) = (126;4.5)