Fix problem with detemination of the date when choose not current date.
Add field that set date of interval.