The amperage rating for THHN / NM-B does not vary based on usage. The difference is that NM-B must use the 60C amperage ratings, whereas if one is using THHN (in conduit) then the 90C rating applies The 90C amperage ratings are higher, as indicated by the above post. For example, #10 NM-B is 30A but #10 THHN is 35A. By code a 5HP motor uses 28A FLC at 230V and the wire size used must be 125% of the FLC. So that means for a 5HP motor, one would need to use #8 NM-B or #10 THHN. When following these rules, the code then allows one to install a maximum breaker 250% of motor FLC. So that means a maximum of a 70A breaker could be used as long as the motor has thermal protection or a magnetic starter with heaters (even though one is using #8 NM-B or #10 THHN). Bottom line, NEC has specific rules for motor circuits that differ to the rules commonly associated with residential circuits or resistive loads such as those used on electric baseboard heaters.