Calculate the difference between two dates

Is for this?
http://forum.mikrotik.com/t/scripting-to-calculate-time-to-disable-ports/162617/1


Is very easy to compare two dates. I have all already ready…
On my Snippets you can find the method to convert date and time to unix epoch.
Convert both dates to unix epoch and compare it, you have the number of seconds between the two dates.