local function getSpellTime(spell) local name, _, _, _, _, dur, exp = UnitDebuff("target", spell, nil, "PLAYER") if name then return string.format("%d", exp - GetTime()) end end