no need to read date, DURATION it is a script argumment - number of seconds
KISS (Keep It Simple, Stupid)
bin variables - updated