I know one formula (attached for reference) which is used to calculate THD. where it is completely independent of harmonic order, it just uses the angles generated by then using SHE equations. so is there any THD formula which uses harmonic order too.?