Convert format: 1d 20h 2m to 00:00

Hello

I can’t figure out how to transform this:
value: (1d 3h 59m) has this value: (H: M)

could you help me

sorry for my english i use a translator.