Imported from AfterMobileDelete
Added iOS icons
Introduced calculateDuration