Attributes can not be used for mathematical operations. So either you will need to pre-compute.
Or, if you would need some calculation with time within MAQL, I would suggest to also load the value as a fact i.e. as # of seconds from the beginning of day. Then you can use these facts to calculate difference. The result will be a number (i.e. number of seconds if you do what I described above) and then you can format this number using the modulo formatting to i.e. days, hours and minutes as described here:
https://help.gooddata.com/pages/viewpage.action?pageId=86795624#FormattingNumbersinInsightsandReports-Format