```\nFile: TellerV2.sol\n 854     function calculateNextDueDate(uint256 _bidId)\n 855         public\n 856         view\n 857         returns (uint32 dueDate_)\n 858     {\n 859         Bid storage bid = bids[_bidId];\n 860         if (bids[_bidId].state != BidState.ACCEPTED) return dueDate_;\n 861\n 862         uint32 lastRepaidTimestamp = lastRepaidTimestamp(_bidId);\n 863\n 864         // Calculate due date if payment cycle is set to monthly\n 865         if (bidPaymentCycleType[_bidId] == PaymentCycleType.Monthly) {\n 866             // Calculate the cycle number the last repayment was made\n 867             uint256 lastPaymentCycle = BPBDTL.diffMonths(\n 868                 bid.loanDetails.acceptedTimestamp,\n 869               \n```\n