Duration fix. Now converts timestamp to seconds.