add CameraFrameDurationFragment and logic for changing camera shot interval
refactoring TimeLapseCalc and add test for it