Fix seconds calculation