Create a table that maps the descriptions to the number of minutes or seconds. e.g
Day = 1440
Hour = 60
...
Split the string into its component parts.
Get the number of minutes from the conversion table.
Multiply that by the number and that is the number of minutes.
Convert that to whatever format you need for the display.