Hi Vadim,
If I understand your issue correctly, you have a bunch of records which have same values but are different because of a different statuses on them, with dates for each status, and you would like to calculate the difference in between those dates, am I correct ? You are probably working on historical data coming into BW from a legacy system. Let me know if I understood your case correctly to help you.
Thanks,
Ranga