```\nFile: libraries/V2Calculations.sol\n\n 93:        // Cast to int265 to avoid underflow errors (negative means loan duration has passed)\n 94:        int256 durationLeftOnLoan = int256(\n 95:            uint256(_bid.loanDetails.loanDuration)\n 96:        ) -\n 97:            (int256(_timestamp) -\n 98:                int256(uint256(_bid.loanDetails.acceptedTimestamp)));\n 99:        bool isLastPaymentCycle = durationLeftOnLoan <\n           int256(uint256(_bid.terms.paymentCycle)) || // Check if current payment cycle is within or beyond the last one\n           owedPrincipal_ + interest_ <= _bid.terms.paymentCycleAmount; // Check if what is left to pay is less than the payment cycle amount\n```\n