LPS-30376 Fix possible infinite loop
LPS-30376 Unit tests for new method calculateCur
LPS-30376 Tests source formatting
LPS-30376 SF