This formula should work for your previous examples and also the ones with days (up to 99 days)

=SUM(MID(0&A1&"0000",FIND({"d","H","M","S"},A1&"xxdHMS")-1,2)/{1,24,1440,86400})

custom format result cell as [hh]:mm:ss - note square brackets - required to show hours totals of 24 or over