Hi, thank you for the respond and sorry for incorrect formats, attaching excel file with right dates formats, hope it is better now. For 0-1 years I am checking how many days in that period a person had contracts. Maria has a contract that started on 04.06.2018, that means that we check period from 2017.06.04 to 2018.06.03. During this period she had the contract from second row, but we count only days in wanted period. That's the reason we count days from 2017.06.04 to 2017.08.01 (the contract ends here).
... View more