When compensation is claimed from or proceedings are taken against an owner or contractor then, in the application of this title, reference to the owner or contractor shall be substituted for reference to the subcontractor, except that the amount of compensation shall be calculated with reference to the earnings of the workman under the subcontractor by whom he is immediately employed.
S.C. Code § 42-1-430