If the moderation effect is different from zero (i.e., if there is a moderation/interaction effect), the c path would differ for different values of the moderator variable (Z). Consequently, also the total effect would differ for different values of Z. In that case, perhaps it would make sense to calculate the total effect for three different representative values of Z (e.g., at the mean, mean + 1SD, and mean - 1SD).