Inductance calculations using partial inductances and macromodels