Problems with elapsed function

Already tried that, but then it gives this error:

Interface\AddOns\LootAndReset\LootAndReset.lua:37: attempt to call local 'elapsed' (a number value).

Looking at your link, it also seems stuff like arg1 isn’t live anymore either, but it’s now Var1? This is getting confusing.