Place holder for when I get home:
Code:
local function getSpellTime(spell)
local name, _, _, _, _, dur, exp, caster = UnitDebuff("target", spell)
if name ~= nil and caster == "player" and name == spell then
--return math.ceil(exp - GetTime());
return string.format("%d", exp - GetTime());
end
end