Fix duration calculation to send update in seconds