Yes os.time() returns a number, the only reasonable problem here is that Profile.Data.LastLogin is not an integer value itself, can you send some background code regarding that value? I would recommend printing it beforehand to see what it is actually storing to find the issue