comment calcduration: 1) allow independent choice of start, end, duration  2) it calculates wrong, anyway