How exactly is falling lateral friction applied?

The question is, how exactly it affects the XY speed over time. For example, I set it to 0.2, and i’d want to calculate the time needed for the XY speed to become zero, how would I calculate that?