1 Introduction

Maintaining inventory is necessary for any company dealing with deteriorating products. Deterioration means loss of utility, or loss of marginal value of commodity, which decreases its usefulness. Ghare and Schrader [1] made the first attempt to describe the optimal ordering policies for such items having constant rate of deterioration. After that, Philip [2] developed the optimal inventory policies with a three parameter weibull distribution rate and no shortages. Shah [3] generalized Philip’s model (1974) by considering shortages. Dave [4] presented an inventory model for deteriorating items with time proportional demand. Later, Aggarwal and jaggi [5] developed the retailer’s optimal ordering policies for deteriorating items under permissible delay in payments. Sarkar et al. [6] presented an order-level lot size inventory model with inventory level dependent demand for deteriorating items. Chu et al. [7] developed an EOQ model of deteriorating items under permissible delay in payments. Manna and Chaudhuri [8] extended an EOQ model by taking unit production cost, time dependent deterioration rate and shortages. Liao et al. [9] formulated an optimal order policy for deteriorating items under inflation and permissible delay in payments. Chang et al. [10] discussed the optimal cycle time for exponentially deteriorating products under trade credit financing. Later, a fuzzy EPQ model for deteriorating items under permissible delay in payments was introduced by Mahata and Goswami [11]. Shah et al. [12] studied on optimizing inventory and marketing policy for non-instantaneous deteriorating items with generalized type deterioration and holding cost rates. After, Giri and Bardhan [13] considered a supply chain coordination for deteriorating item with stock and price dependent demand under revenue sharing contract. Teng et al. [14] presented inventory lot-size policies for deteriorating items with expiration dates and advance payments. Recently, Sharma et al. [15] developed an inventory model for deteriorating items with expiry date and time-varying holding cost. There are many articles related to deterioration as like Mahata and Goswami [16], Sana [17], Skouri et al. [18], and Sarkar et al. [19] etc.

All the above articles are based on the assumption that the retailer must pay for the items within the fixed time period given by the supplier. This fixed time period is known as trade credit period. Interest is charged if the retailer is unable to pay for the items within that time. If supplier offers trade credit to the customers but the retailer does not it to his customers then it is known as One-level trade credit. Based on this idea Goyal [20] first established an EOQ model under trade credit. Later, Khouja and Mehrez 1996) [21] developed this model under different credit policies. Chung 1998) [22] considered the DCF (discounted cash flow) approach for the analysis of the optimal ordering policy under trade credit. After that, Teng [23] developed an EOQ model under the conditions of permissible delay in payments. Huang and Chung [24] obtained an optimal retailer’s ordering policies in the EOQ model under trade credit financing. Abad and Jaggi [25] discussed a joint approach for setting unit-price and the length of credit period for a seller when end customer’s demand is price sensitive. Thangam and UthayKumar [26] developed Teng’s (2002) model from EOQ model to EPQ model with considering a partial trade credit policy. Different discount rates on purchasing cost offered by the supplier in a single level trade credit policy are discussed by Sarkar et al. [27]. Khanra et al. [28] extended the optimal order policies by taking time dependent demand and shortages under trade credit. Chen et al. [29] brought the strategy that supplier offers retailer a fully permissible delay of some periods if retailer’s order more than or equal to a predetermined items. Mahata and Mahata [30] obtained a finite replenishment model with trade credit and variable deterioration for fixed lifetime products. After that, Kaur et al. [31] developed an optimal ordering policy with non increasing demand for time dependent deterioration under fixed life time production and permissible delay in payments. There are several articles relevant to trade credit such as Jamal et al. [32], Sarkar et al. [33], Chung [34], Chung et al. [35], Huang [36] etc.

All the above mentioned articles are based on the single level trade credit policy where supplier would offer the trade credit to the retailer but retailer does not extend it to his customer. If both supplier and retailer offer their customers then it is called two level trade credit. To hedge against negative impacts of expiration date towards the retailer's order incentive, two-level trade credit (including upstream and downstream) has long been employed to adjust the retailer's order quantity (Wu et al. [14]; Mahata et al. [37]). That is, upstream credit period without paying any interest is usually offered by the supplier, which makes it possible for the retailer to generate additional opportunity income and to adopt an excessive ordering policy. In addition, downstream credit period is often granted by the retailer, aiming to directly promote the market demand. Due to their positive affects towards the retailer's optimal order policy, upstream/downstream trade credit can be widely observed in grocery offerings and e-Commerce, such as Walmart, Amazon, etc. In addition, it has been estimated that the median levels of trade credit in industrialized nations (such as US, Canada and Japan) range from 13 to 40% from 1988 to 2007 (Seifert et al. [38]).

However, in the context of the deteriorating items with expiration date, two-level trade credit may lead to double effects towards the retailer's order incentive. That is, benefiting from two-level trade credit, customers may be stimulated to purchase more products, resulting in higher values of the retailer's order cycle (Shi et al. 2018). Nevertheless, in the context of expiration date, higher order cycle may derive more deteriorated quantity (cost), and lead the retailer to be responsible for more opportunity cost of capital. For example, in grocery offerings, Walmart/Amazon is often allowed to delay the payment by the upstream suppliers, while customers can obtain credit period when purchasing from retailer. Nevertheless, it is still unclear whether two-level trade credit is effective for the retailer to hedge against quantity loss and quality loss derived from deteriorating items with expiration date. However, the strategy of granting credit terms adds not only an additional cost but also an additional dimension of default risk to the retailer.

Based on this concept, Huang [39] developed the retailer’s optimal ordering policies in the EOQ model under a two level trade credit policy. After that Huang [40] modified Huang’s (2003) model to incorporate a retailer’s storage space limitation. Teng [41] presented optimal manufacturer’s replenishment policies in the EPQ model under two level trade credit policy. Chung [42] pointed out the simplified solution procedure for the optimal replenishment decision under two level trade credit policy. Ho [43] developed an optimal integrated inventory policy with price and credit linked demand under two level of trade credit policy. After that, Mahata [44] introduced an EPQ inventory model for exponentially deteriorating item under retailer’s partial trade credit policy in supply chain. Wu et al. [14] discussed Inventory models for deteriorating items with maximum lifetime under downstream partial trade credits to credit-risk customers by discounted cash-flow analysis. The effect of preservation technology investment on a non instantaneous deteriorating inventory model was discussed by Dye [45]. Sarkar [46] studied on two level trade credit policy with time dependent deterioration rate and demand. A comprehensive extension of optimal replenishment decisions under two level trade credit depending on order quantity was developed by Ouyang et al. [47]. Wu et al. [48] obtained an optimal credit period and lot size for deteriorating items with expiration dates under two level trade credit financing.

Under trapezoidal type demand, Wu et al. [49] addressed inventory policies for deteriorating items with maximum lifetime and two-level trade credit. Li et al. [50] derived different inventory models under two level trade credit linked to order quantity. Mahata and Mahata [51] extended an EOQ model under two level partial trade credit by taking time varying deteriorating items. Besides these articles there are many articles related to optimal inventory policies under two level trade credit like as Thangam and Uthayakumar [52], Jaggi et al. [53], Soni [54], and Sarkar et al. [55] etc.

In this paper, we propose the retailer’s optimal credit period and cycle time in a EOQ model in which (1) the supplier offers retailer a trade credit period (\(M\)) and the retailer in turn offers a trade credit period (\(N\)) to his/her customers, (2) deteriorating items with expiration date \(m\) where the replenishment cycle time \(T\) is not more than \(m\), (3) Demand rate is dependent on both credit period offered by retailer and product freshness condition and (4) Replenishment rate is instantaneous, and shortages are not allowed. Considering these conditions, we construct the retailer’s inventory model as a profit maximization problem. In order to obtain the optimal ordering policies, we propose some lemmas to help the retailer in accurately and quickly determine the optimal replenishment decisions under maximizing the annual total profit. Finally, we have used software MATLAB to study the sensitivity analysis on the optimal solution with respect to each parameter to illustrate the model and provide some managerial insights.

2 Assumptions and notations

The following assumptions and notations are adopted to formulate the new proposed models throughout the paper.

2.1 Assumptions

  1. (i)

    The inventory system involves one type of deteriorating items with expiration date \(m\), where the replenishment cycle time \(T\) is not more than \(m\), i.e., \(T \le m\). And both quantity and quality losses are involved in this paper.

  2. (ii)

    By referring to Sarkar [46] and Mahata et al. [56], during the expiration date \(m\), the quantity loss rate of the items can be defined as follows:

    $$ \theta \left( t \right) = \frac{1}{1 + m - t}, 0 \le t \le T \le m $$

    Apparently, \(\theta \left( t \right)\) is closed to 1 when time is approaching to the expiration date.

  3. (iii)

    Regarding quality loss, the freshness index decreases with \(t\). By referring to Chen et al. [57] and Li and Teng [58], the freshness of products can be defined as follows:

    $$ f\left( t \right) = \frac{m - t}{m}, 0 \le t \le T \le m $$

    From the above Eq., \(f\left( t \right)\) would reach \(0\) when the product approach its expiration date, i.e., quality of deteriorating items reduces to zero.

  4. (iv)

    The retailer settles the account at time \(M\) and pay for the interest charges on items in stock with rate \(I_{c}\) over the interval \(\left[ {M,T} \right]\) when \(T \ge M\). Alternatively, the retailer settles the account at time \(M\) and is not required to pay any interest charge for items in stock during the whole cycle when \(T \le M\). On the other hand, the retailer can accumulate revenue and earn interest during the period from \(N\) to \(M\) (when \(M > N\)) with rate \(I_{e}\) under the trade credit conditions.

  5. (v)

    Since consumers prefer a deteriorating item that is further from its expiration date, implying that the demand for deteriorating items is influenced by product freshness perceived by the expiration date. As a result, quality loss impairs the customer willingness to purchase deteriorating items throughout its expiration date, leading to the decrease of market demand due to its instantaneous freshness. On the other hand, it is observed that trade credit offered by the Retailer to customers has a positive impact on demand. Because credit trade allows customers to enjoy the benefits of delayed payments, lengthening the period will stimulate sales. The longer the credit period is, the higher is the demand. Hence, demand strictly increases in the credit period.

    Combining above two relations, demand rate \(D\left( {N,t} \right)\) is dependent on both credit period offered by retailer and product freshness condition. Trade credit has a positive impact on demand while demand for product decreases with losses its freshness with time. Here we assumed the functional representation of demand rate as follows:

    $$ D\left( {N,t} \right) = Ke^{aN} f\left( t \right) = Ke^{aN} \frac{m - t}{m}, 0 \le t \le T \le m. $$

    where \(K\) and \(a\) are positive constants. For convenience, \(D\left( {N,t} \right)\) and \(D\) will be used interchangeably. This type of demand is seen to occur in the case of product such as fresh food, fresh fruits, vegetables, chemicals and medicines which may deteriorate when they are stored in warehouse. These deteriorating items may lose their utility with time due to decay, damage or spoilage.

  6. (vi)

    A 30-year mortgage has a higher default risk than a 15-year mortgage. Likewise, the longer the credit period is, the higher the percentage that the buyer will not be able to pay off the debt. Although sales can be stimulated by trade credit, longer credit period increases the probability of a customer default. Therefore, we assume without loss of generality that the rate of default risk giving the credit period \(N\) is

    $$ F\left( N \right) = 1 - e^{ - bN} , $$

    where b is the coefficient of the default risk, which is a positive constant. This default risk pattern is used in some studies (Teng and Lou [59], Mukherjee and Mahata [60]).

  7. (vii)

    Replenishment rate is instantaneous, and shortages are not allowed.

2.2 Notations

\(A\) :

The retailer's fixed order cost per order.

\(c\) :

The retailer's purchase cost per unit.

\(p\) :

The retailer's selling price per unit, where \(c < p\).

\(h\) :

The retailer's unit holding cost per unit time (excluding interest charge when involving upstream trade credit), where \(h < p\).

\(r\) :

Annual compound interest paid per dollar per year.

\(N\) :

The customer's credit period granted by the retailer.

\(D\left( {N,t} \right)\) :

The retailer's market demand rate, which is a function of \(N\) and \(t\).

\(m\) :

The expiration date of deteriorating items.

\(\theta \left( t \right)\) :

The time-varying quantity loss rate at time \(t \in \left[ {0,T} \right]\), where \(0 \le \theta \left( t \right) \le 1\).

\(f\left( t \right)\) :

The time-varying quality loss rate at \(t \in \left[ {0,T} \right]\), which is a decreasing function within \(\left[ {0,1} \right]\).

\(I\left( t \right)\) :

The retailer's inventory level at time \(t \in \left[ {0,T} \right]\).

\(T\) :

The retailer's order cycle time (decision variable), where \(T \le m\).

\(Q\) :

The retailer's order quantity.

\(Q_{d}\) :

The retailer's total sales volume during the order cycle.

\(TP\left( {N,T} \right)\) :

The retailer's average profit per unit time.

Given the above notation and assumptions, the retailer’s aim is to determine credit period \(N\) and replenishment cycle time \(T\) such that the profit per unit time is maximized.

3 Mathematical model formulation

According to above assumptions, during the time interval \(\left[ {0,T} \right]\), the inventory level \(I\left( t \right)\) decreases with the combined effects of the quantity loss \(\theta \left( t \right)\) and market demand \(D\left( {N,t} \right)\), which can be expressed by the following differential equation:

$$ \frac{dI\left( t \right)}{{dt}} = - D\left( {N,t} \right) - \theta \left( t \right)I\left( t \right) = - Ke^{aN} \frac{m - t}{m} - \frac{1}{1 + m - t}I\left( t \right), 0 \le t \le T. $$
(1)

Solution of Eq. (1) with the boundary condition \(I\left( T \right) = 0\) yields,

$$ I\left( t \right) = \frac{{Ke^{aN} }}{m}\left( {1 + m - t} \right)\left( {T - t} \right) + \frac{{Ke^{aN} }}{m}\left( {1 + m - t} \right)\log \left( {\frac{1 + m - T}{{1 + m - t}}} \right) $$
(2)

The order quantity \(Q\) is obtain by substituting \(t = 0\), i.e.,

$$ Q = I\left( 0 \right) = \frac{{Ke^{aN} }}{m}\left( {1 + m} \right)T + \frac{{Ke^{aN} }}{m}\left( {1 + m} \right)\log \left( {\frac{1 + m - T}{{1 + m}}} \right) $$
(3)

Then, during the order cycle, the retailer's total sales volume

$$ Q_{d} = \mathop \int \limits_{0}^{T} D\left( {N,t} \right)dt = KTe^{aN} \frac{2m - T}{{2m}}. $$
(4)

Thus, the elements comprising the retailer's average profit function are listed below.

The discounted sales revenue after the default risk during the replenishment period \(\left[ {0,T} \right]\) is,

$$ pKe^{ - rN} e^{aN} \left( {1 - F\left( N \right)} \right)\mathop \int \limits_{0}^{T} \frac{m - t}{m}dt = pKe^{{\left[ {a - \left( {b + r} \right)} \right]N}} \frac{2m - T}{{2m}}. $$
(5)
$$ {\text{The}}\;{\text{fixed}}\;{\text{order}}\;{\text{cost}}\;{\text{per}}\;{\text{cycle}}\;{\text{is}} = \frac{A}{T}. $$
(6)
$$ {\text{Purchase}}\;{\text{cost}}\;{\text{per}}\;{\text{cycle}}\;{\text{is}} = c\frac{{Ke^{aN} }}{m}\left( {1 + m} \right) + c\frac{{Ke^{aN} \left( {1 + m} \right)}}{mT}\log \left( {\frac{1 + m - T}{{1 + m}}} \right). $$
(7)
$$ \begin{aligned} & {\text{The}}\;{\text{holding}}\;{\text{cost}}\;{\text{per}}\;{\text{cycle}}\;\left( {{\text{including}}\;{\text{interest}}\;{\text{charges}}\;{\text{without}}\;{\text{trade}}\;{\text{credit}}} \right) \\ & = \frac{h}{T}\mathop \int \limits_{0}^{T} I\left( t \right)dt = \frac{h}{T}\left[ \frac{{Ke^{aN} }}{m}\left\{ {\frac{{\left( {1 + m} \right)T^{2} }}{2} - \frac{{T^{3} }}{6}} \right\} \right. \\ & \quad\left.+ \left. {\frac{{Ke^{aN} }}{m}\left\{ {\frac{{\left( {1 + m} \right)^{2} }}{2}\log \left( {\frac{1 + m - T}{{1 + m}}} \right) + \frac{{T\left( {1 + m} \right)}}{2} - \frac{{T^{2} }}{4}} \right\}} \right] \right.. \\ \end{aligned} $$
(8)

The two cases may arise to calculate the annual capital opportunity cost i.e. (i) and (ii).

Case 1 \({\varvec{N}} < M\).

In this case, there are two possible cases arise: (1) \(T + N \le M\) and (2) \(T + N \ge M\). Now, let us discuss the detailed formulation of each sub-case.

Sub-case 1.1 \({\varvec{T}} + {\varvec{N}} \le {\varvec{M}}\) (see Fig. 1).

Fig. 1
figure 1

The retailer’s interest earned and interest charged when \(N \le T + N \le M\)

With \(T + N \le M\), the retailer receives sales revenue of all items at time \(T + N\) and is able to pay off total purchasing cost by \(M\). Therefore, there is no interest charged. On the other hand, during the period \(\left[ {N,T + N} \right]\) retailer can earned interest on the sale revenues received from customers and on full sales revenue during the period \(\left[ {T + N,M} \right]\). Therefore, annual interest earned is,

$$ \begin{aligned} & \frac{{sI_{e} }}{T}\left[ {\mathop \int \limits_{N}^{T + N} \mathop \int \limits_{N}^{t + N} D\left( {N,u - N} \right)dudt + \left( {M - T - N} \right)Q_{d} } \right] \\ & = pI_{e} Ke^{aN} \left[ {\frac{T}{2} + N - \frac{{T^{2} }}{6m} - \frac{TN}{{2m}} - \frac{{N^{2} }}{2m} + \frac{{\left( {M - T - N} \right)\left( {2m - T} \right)}}{2m}} \right] \\ \end{aligned} $$
(9)

Therefore, the total annual profit function is

$$ \begin{aligned} TP_{11} \left( {N,T} \right) & = pKe^{{\left[ {a - \left( {b + r} \right)} \right]N}} \frac{2m - T}{{2m}} - \frac{A}{T} - \left\{ {\frac{{cKe^{aN} }}{m}\left( {1 + m} \right) + \frac{{cKe^{aN} \left( {1 + m} \right)}}{mT}\log \left( {\frac{1 + m - T}{{1 + m}}} \right)} \right\} \\ & \quad - \;\frac{h}{T}\left[ {\frac{{Ke^{aN} }}{m}\left\{ {\frac{{\left( {1 + m} \right)T^{2} }}{2} - \frac{{T^{3} }}{6}} \right\} + \left. {\frac{{Ke^{aN} }}{m}\left\{ {\frac{{\left( {1 + m} \right)^{2} }}{2}\log \left( {\frac{1 + m - T}{{1 + m}}} \right) + \frac{{T\left( {1 + m} \right)}}{2} - \frac{{T^{2} }}{4}} \right\}} \right]} \right. \\ & \quad + \;pI_{e} Ke^{aN} \left[ {\frac{T}{2} + N - \frac{{T^{2} }}{6m} - \frac{TN}{{2m}} - \frac{{N^{2} }}{2m} + \frac{{\left( {M - T - N} \right)\left( {2m - T} \right)}}{2m}} \right] \\ & = pKe^{{\left[ {a - \left( {b + r} \right)} \right]N}} - \frac{{pTKe^{{\left[ {a - \left( {b + r} \right)} \right]N}} }}{2m} - \frac{A}{T} - \frac{{cK\left( {1 + m} \right)e^{aN} }}{m} + \frac{{cKe^{aN} \left( {2 + 2m + T} \right)}}{{2m\left( {1 + m} \right)}} \\ & \quad - \;\frac{{hKe^{aN} \left( {1 + m} \right)T}}{2m} + \frac{{hKe^{aN} T^{2} }}{6m} + \frac{{hKe^{aN} \left( {2 + 2m + T} \right)}}{4m} - \frac{{hKe^{aN} \left( {1 + m} \right)}}{2m} + \frac{{hKe^{aN} T}}{4m} \\&\quad + pI_{e} Ke^{{aN}} \left[ {\frac{T}{2} + N - \frac{{T^{2} }}{{6m}} - \frac{{TN}}{{2m}} - \frac{{N^{2} }}{{2m}} + \frac{{\left( {M - T - N} \right)\left( {2m - T} \right)}}{{2m}}} \right] \\ \end{aligned} $$
(10)

(Approximately).

Sub-Case 1.2 \({\varvec{T}} + {\varvec{N}} \ge {\varvec{M}}\) (see Fig. 2).

Fig. 2
figure 2

The retailer’s interest earned and interest charged when \(N \le M \le T + N\)

With \(T + N \ge M\), the retailer does not receive the last payment before the permissible delay period \(M\). As a result, the retailer must finance all items sold after time (\(M - N\)) at time \(M\), and pay off the loan until \(T + N\) at an interest rate \(I_{c}\) per dollar per year. Therefore, we can have the interest charged in the following:

$$ \begin{aligned} & \frac{{cI_{c} }}{T}\mathop \int \limits_{M}^{T + N} I\left( {t - N} \right)dt = \frac{{cI_{c} }}{T}\mathop \int \limits_{M - N}^{T} I\left( t \right)dt \\ & = \frac{{Ke^{aN} cI_{c} }}{mT}\left[ \frac{{\left( {1 + m} \right)T^{2} }}{2} - \frac{{T^{3} }}{6} +\frac{T}{2}\left\{ {\left( {M - N} \right)^{2} - 2\left( {1 + m} \right)\left( {M - N} \right)} \right\}\right. \\ & \left. + \frac{{\left( {M - N} \right)^{2} \left( {1 + m} \right)}}{2} - \frac{{\left( {M - N} \right)^{3} }}{3} \right. \\ & \quad + \;\frac{{\left( {1 + m - M + N} \right)^{2} }}{2}\log \left( {\frac{1 + m - T}{{1 + m - M + N}}} \right) - \frac{{T^{2} }}{4} + \frac{{\left( {m + 1} \right)T}}{2} \\ &\quad+ \left. {\left\{ {\frac{{\left( {M - N} \right)^{2} - 2\left( {1 + m} \right)\left( {M - N} \right)}}{4}} \right\}} \right] \\ \end{aligned} $$

On the other hand, during the period \(\left[ {N,M} \right]\) retailer can earned interest on the sale revenues received from the delayed payment during the period \(\left[ {N,M} \right]\). Therefore, annual interest earned is,

$$ \frac{{pI_{e} }}{T}\mathop \int \limits_{N}^{M} \mathop \int \limits_{N}^{t + N} D\left( {N,u - N} \right)dudt = \frac{{pI_{e} Ke^{aN} }}{T}\left[ {\frac{{\left( {M^{2} - N^{2} } \right)}}{2} - \frac{{\left( {M^{3} - N^{3} } \right)}}{6m}} \right] $$

Hence, the retailer’s annual total profit function is

$$ \begin{aligned} TP_{12} \left( {N,T} \right) & = {\text{annual sales revenue }}{-}{\text{ annual ordering cost }}{-}{\text{ annual purching cost }} \\ & \quad {-}\;{\text{ annual holding cost }} {-}{\text{ annual}}\;{\text{capital}}\;{\text{opportunity}}\;{\text{cost}} \\ & = pKe^{{\left[ {a - \left( {b + r} \right)} \right]N}} \frac{2m - T}{{2m}} - \frac{A}{T} - \left\{ {\frac{{cKe^{aN} }}{m}\left( {1 + m} \right) + \frac{{cKe^{aN} \left( {1 + m} \right)}}{mT}\log \left( {\frac{1 + m - T}{{1 + m}}} \right)} \right\} \\ & \quad - \;\frac{h}{T}\left[ {\frac{{Ke^{aN} }}{m}\left\{ {\frac{{\left( {1 + m} \right)T^{2} }}{2} - \frac{{T^{3} }}{6}} \right\} + \left. {\frac{{Ke^{aN} }}{m}\left\{ {\frac{{\left( {1 + m} \right)^{2} }}{2}\log \left( {\frac{1 + m - T}{{1 + m}}} \right) + \frac{{T\left( {1 + m} \right)}}{2} - \frac{{T^{2} }}{4}} \right\}} \right]} \right. \\ & \quad - \;\frac{{cI_{c} Ke^{aN} }}{mT}\left[ {\frac{{\left( {1 + m} \right)T^{2} }}{2} - \frac{{T^{3} }}{6} + \frac{T}{2}\left\{ {\left( {M - N} \right)^{2} - 2\left( {1 + m} \right)\left( {M - N} \right)} \right\} + \frac{{\left( {M - N} \right)^{2} \left( {1 + m} \right)}}{2} - \frac{{\left( {M - N} \right)^{3} }}{3}} \right. \\ & \quad + \;\frac{{\left( {1 + m - M + N} \right)^{2} }}{2}\log \left( {\frac{1 + m - T}{{1 + m - M + N}}} \right) - \frac{{T^{2} }}{4} + \frac{{\left( {m + 1} \right)T}}{2} + \left. {\left\{ {\frac{{\left( {M - N} \right)^{2} - 2\left( {1 + m} \right)\left( {M - N} \right)}}{4}} \right\}} \right] \\ & \quad + \;\frac{{pI_{e} Ke^{aN} }}{T}\left[ {\frac{{\left( {M^{2} - N^{2} } \right)}}{2} - \frac{{\left( {M^{3} - N^{3} } \right)}}{6m}} \right] \\ & = pKe^{{\left[ {a - \left( {b + r} \right)} \right]N}} - \frac{{pTKe^{{\left[ {a - \left( {b + r} \right)} \right]N}} }}{2m} - \frac{A}{T} - \frac{{cK\left( {1 + m} \right)e^{aN} }}{m} + \frac{{cKe^{aN} \left( {2 + 2m + T} \right)}}{{2m\left( {1 + m} \right)}} \\ & \quad - \;\frac{{hKe^{aN} \left( {1 + m} \right)T}}{2m} + \frac{{hKe^{aN} T^{2} }}{6m} + \frac{{hKe^{aN} \left( {2 + 2m + T} \right)}}{4m} - \frac{{hKe^{aN} \left( {1 + m} \right)}}{2m} + \frac{{hKe^{aN} T}}{4m} \\ & \quad - \;\frac{{cI_{c} Ke^{aN} }}{mT}\left[ {\frac{{\left( {1 + m} \right)T^{2} }}{2} - \frac{{T^{3} }}{6} + \frac{T}{2}\left\{ {\left( {M - N} \right)^{2} - 2\left( {1 + m} \right)\left( {M - N} \right)} \right\} + \frac{{\left( {M - N} \right)^{2} \left( {1 + m} \right)}}{2} - \frac{{\left( {M - N} \right)^{3} }}{3}} \right. \\ & \quad - \;\frac{{\left( {T + N - M} \right)\left( {2 + 2m - 3M + 3N + T} \right)}}{4} - \frac{{T^{2} }}{4} + \frac{{\left( {m + 1} \right)T}}{2} + \left. {\left\{ {\frac{{\left( {M - N} \right)^{2} - 2\left( {1 + m} \right)\left( {M - N} \right)}}{4}} \right\}} \right] \\ & \quad + \;\frac{{pI_{e} Ke^{aN} }}{T}\left[ {\frac{{\left( {M^{2} - N^{2} } \right)}}{2} - \frac{{\left( {M^{3} - N^{3} } \right)}}{6m}} \right] \\ \end{aligned} $$
(11)

(Approximately).

Case 2 \({\varvec{N}} \ge {\varvec{M}}\) (see Fig. 3).

Fig. 3
figure 3

The retailer’s interest earned and interest charged when \(M \le N \le T + N\)

Since \(N \ge M\), there is no interest earned. The retailer must finance all the purchasing cost from.

\(\left[ {M,N} \right]\) and pay off the loan from \(\left[ {N,T + N} \right]\). Therefore, the interest charged per cycle is

$$ \begin{aligned} & \frac{{cI_{c} }}{T}\left[ {\left( {N - M} \right)Q_{d} + \mathop \int \limits_{0}^{T} I\left( t \right)dt} \right] \\ & = \frac{{cI_{c} Ke^{aN} }}{2mT}\left[ {\left( {N - M} \right)T\left( {2m - T} \right) + \left\{ {\left( {1 + m} \right)T^{2} - \frac{{T^{3} }}{3} + \left( {1 + m} \right)^{2} \log \left( {\frac{1 + m - T}{{1 + m}}} \right) - \frac{{T^{2} }}{2} + \left( {1 + m} \right)T} \right\}} \right] \\ \end{aligned} $$

Consequently, the retailer’s annual total profit function is

$$ \begin{aligned} TP_{2} \left( {N,T} \right) & = pKe^{{\left[ {a - \left( {b + r} \right)} \right]N}} \frac{2m - T}{{2m}} - \frac{A}{T} - \left\{ {\frac{{cKe^{aN} \left( {1 + m} \right)}}{m} + \frac{{cKe^{aN} \left( {1 + m} \right)}}{mT}\log \left( {\frac{1 + m - T}{{1 + m}}} \right)} \right\} \\ & \quad - \;\frac{h}{T}\left[ {\frac{{Ke^{aN} }}{m}\left\{ {\frac{{\left( {1 + m} \right)T^{2} }}{2} - \frac{{T^{3} }}{6}} \right\} + \left. {\frac{{Ke^{aN} }}{m}\left\{ {\frac{{\left( {1 + m} \right)^{2} }}{2}\log \left( {\frac{1 + m - T}{{1 + m}}} \right) + \frac{{T\left( {1 + m} \right)}}{2} - \frac{{T^{2} }}{4}} \right\}} \right]} \right. \\ & \quad - \;\frac{{cI_{c} Ke^{aN} }}{2mT}\left[ {\left( {N - M} \right)T\left( {2m - T} \right) + \left\{ {\left( {1 + m} \right)T^{2} - \frac{{T^{3} }}{3} + \left( {1 + m} \right)^{2} } \right.} \right.\log \left( {\frac{1 + m - T}{{1 + m}}} \right) \\ & \quad \left. { - \left. {\frac{{T^{2} }}{2} + \left( {1 + m} \right)T} \right\}} \right] \\ & = pKe^{{\left[ {a - \left( {b + r} \right)} \right]N}} - \frac{{pTKe^{{\left[ {a - \left( {b + r} \right)} \right]N}} }}{2m} - \frac{A}{T} - \frac{{cK\left( {1 + m} \right)e^{aN} }}{m} + \frac{{cKe^{aN} \left( {2 + 2m + T} \right)}}{{2m\left( {1 + m} \right)}} \\ & \quad - \;\frac{{hKe^{aN} \left( {1 + m} \right)T}}{2m} + \frac{{hKe^{aN} T^{2} }}{6m} + \frac{{hKe^{aN} \left( {2 + 2m + T} \right)}}{4m} - \frac{{hKe^{aN} \left( {1 + m} \right)}}{2m} + \frac{{hKe^{aN} T}}{4m} \\ & \quad - \;\frac{{cI_{c} Ke^{aN} }}{2m}\left[ {\left( {N - M} \right)\left( {2m - T} \right) + \left\{ {\left( {1 + m} \right)T - \frac{{T^{2} }}{3} - \frac{{\left( {2 + 2m + T} \right)}}{2}\left. { - \left. {\frac{T}{2} + \left( {1 + m} \right)} \right\}} \right]} \right.} \right. \\ \end{aligned} $$
(12)

(Approximately).

Hence our problem is,

$$ Maximize TP\left( {N,T} \right) = \left\{ {\begin{array}{*{20}c} {TP_{1} \left( {N,T} \right),} & \quad{{\text{if}}\;N \le M} \\ {TP_{2} \left( {N,T} \right), } &\quad {{\text{if}}\;N \ge M} \\ \end{array} } \right. $$
(13)

where \(TP_{1} \left( {N,T} \right) = \left\{ {\begin{array}{*{20}c} {TP_{11} \left( {N,T} \right), } & \quad{{\text{if}}\;T + N \le M} \\ {TP_{12} \left( {N,T} \right), } & \quad{{\text{if}}\;T + N \ge M} \\ \end{array} } \right.\) and \(TP_{11} \left( {N,T} \right)\), \(TP_{12} \left( {N,T} \right)\), and \(TP_{2} \left( {N,T} \right)\) are given by (10), (11), and (12) respectively.

4 Optimal solution

Case 1 \({\varvec{N}} < M\).

Sub-Case 1.1 \({\varvec{T}} + {\varvec{N}} \le {\varvec{M}} \)

Taking 1st and 2nd partial derivatives of \(TP_{11} \left( {N,T} \right)\) in Eq. (10) with respect to \(T\) keeping \(N\) as fixed, we get

$$ \begin{aligned} \frac{{\partial TP_{11} \left( {N,T} \right)}}{\partial T} = &\frac{A}{{T^{2} }} - \frac{{pKe^{{\left[ {a - \left( {b + r} \right)} \right]N}} }}{2m} + \frac{{cKe^{aN} }}{{2m\left( {1 + m} \right)}}\\ & - \frac{{hKe^{aN} }}{m}\left( {\frac{m}{2} - \frac{T}{3}} \right) + pI_{e} Ke^{aN} \left( { - \frac{1}{2} - \frac{M}{2m} + \frac{2T}{{3m}}} \right), \end{aligned} $$
(14)
$$ \frac{{\partial^{2} TP_{11} \left( {N,T} \right)}}{{\partial T^{2} }} = - \frac{2A}{{T^{3} }} + \frac{{\left( {h + 2pI_{e} } \right)Ke^{aN} }}{3m} = \frac{1}{{3mT^{3} }}\left\{ {\left( {h + 2pI_{e} } \right)Ke^{aN} T^{3} - 6mA} \right\} < 0, $$
(15)

provided that \(\left( {h + 2pI_{e} } \right)Ke^{aN} T^{3} - 6mA < 0\). Based on it, we have the following lemma.

Lemma 1

For fixed value of \(N\), the retailer’s profit function \(TP_{11} \left( {N,T} \right)\) is a concave function of \(T\), provided that \(\left( {h + 2pI_{e} } \right)Ke^{aN} T^{3} - 6mA < 0\).

Proof

The proof is immediately follows from the above discussion.□

Now, for fixed values of \(T\), differentiating \(TP_{11} \left( {N,T} \right)\) partially with respect to \(N\), we get

$$ \begin{aligned} \frac{{\partial TP_{11} \left( {N,T} \right)}}{\partial N} & = \left[ {a - \left( {b + r} \right)} \right]pKe^{{\left[ {a - \left( {b + r} \right)} \right]N}} \frac{2m - T}{{2m}} - acKe^{aN} \left\{ {\frac{{\left( {1 + m} \right)}}{m} - \frac{{\left( {2 + 2m + T} \right)}}{{2m\left( {1 + m} \right)}}} \right\} \\ & \quad + \;\frac{{ahKe^{aN} }}{m}\left\{ {\frac{{T^{2} }}{6} - \frac{{\left( {1 + m} \right)T}}{2} + \frac{{\left( {2 + 2m + T} \right)}}{4} - \frac{{\left( {1 + m} \right)}}{2} + \frac{T}{4}} \right\} \\ & \quad + \;apI_{e} Ke^{aN} \left[ {\frac{T}{2} + N - \frac{{T^{2} }}{6m} - \frac{TN}{{2m}} - \frac{{N^{2} }}{2m} + \frac{{\left( {M - T - N} \right)\left( {2m - T} \right)}}{2m}} \right] - \frac{{pI_{e} Ke^{aN} N}}{m}, \\ \end{aligned} $$
(16)

and

$$ \begin{aligned} \frac{{\partial^{2} TP_{11} \left( {N,T} \right)}}{{\partial N^{2} }} & = \left[ {a - \left( {b + r} \right)} \right]^{2} pKe^{{\left[ {a - \left( {b + r} \right)} \right]N}} \frac{2m - T}{{2m}} - a^{2} cKe^{aN} \left\{ {\frac{{\left( {1 + m} \right)}}{m} - \frac{{\left( {2 + 2m + T} \right)}}{{2m\left( {1 + m} \right)}}} \right\} \\ & \quad + \;\frac{{a^{2} hKe^{aN} }}{m}\left\{ {\frac{{T^{2} }}{6} - \frac{{\left( {1 + m} \right)T}}{2} + \frac{{\left( {2 + 2m + T} \right)}}{4} - \frac{{\left( {1 + m} \right)}}{2} + \frac{T}{4}} \right\} \\ & \quad + \;a^{2} pI_{e} Ke^{aN} \left[ {\frac{T}{2} + N - \frac{{T^{2} }}{6m} - \frac{TN}{{2m}} - \frac{{N^{2} }}{2m} + \frac{{\left( {M - T - N} \right)\left( {2m - T} \right)}}{2m}} \right] - \frac{{2apI_{e} Ke^{aN} N}}{m} - \frac{{pI_{e} Ke^{aN} }}{m} \\ & \quad = \; - \left( {b + r} \right)\left[ {a - \left( {b + r} \right)} \right]pKe^{{\left[ {a - \left( {b + r} \right)} \right]N}} \frac{2m - T}{{2m}} - \frac{{apI_{e} Ke^{aN} N}}{m} - \frac{{pI_{e} Ke^{aN} }}{m} < 0. \\ \end{aligned} $$
(17)

Based on it, we have the following lemma.

Lemma 2

For fixed value of \(T\), the retailer’s profit function \(TP_{11} \left( {N,T} \right)\) is a concave function of \(N\).

Proof

The proof is immediately follows from the above discussion.□

Sub-Case 1.2 \({\varvec{T}} + {\varvec{N}} \ge {\varvec{M}}\).

Taking 1st and 2nd partial derivatives of \(TP_{12} \left( {N,T} \right)\) in Eq. (11) with respect to \(T\) keeping \(N\) as fixed, we get

$$ \begin{aligned} \frac{{\partial TP_{12} \left( {N,T} \right)}}{\partial T} & = \frac{A}{{T^{2} }} - \frac{{pKe^{{\left[ {a - \left( {b + r} \right)} \right]N}} }}{2m} + \frac{{cKe^{aN} }}{{2m\left( {1 + m} \right)}} - \frac{{hKe^{aN} }}{m}\left( {\frac{m}{2} - \frac{T}{3}} \right) \\ & \quad - \;\frac{{cI_{c} Ke^{aN} }}{m}\left\{ {\frac{{\left( {1 + m} \right)}}{2} - \frac{T}{3} - \frac{{\left( {M - N} \right)^{2} \left( {1 + m} \right)}}{{2T^{2} }} + \frac{{\left( {M - N} \right)^{3} }}{{3T^{2} }} - \frac{1}{2} - \left( {\frac{{\left( {M - N} \right)^{2} - 2\left( {1 + m} \right)\left( {M - N} \right)}}{{4T^{2} }}} \right)} \right\} \\ & \quad - \;\frac{{pI_{e} Ke^{aN} }}{{T^{2} }}\left\{ {\frac{{\left( {M^{2} - N^{2} } \right)}}{2} - \frac{{\left( {M^{3} - N^{3} } \right)}}{6m}} \right\} \\ \end{aligned} $$
(18)

and

$$ \begin{aligned} \frac{{\partial^{2} TP_{12} \left( {N,T} \right)}}{{\partial T^{2} }} & = - \frac{2A}{{T^{3} }} - \frac{{Ke^{aN} }}{{6mT^{3} }}\left[ {cI_{c} \left\{ {6\left( {M - N} \right)^{2} \left( {1 + m} \right) + 3\left( {M - N} \right)^{2} - 6\left( {1 + m} \right)\left( {M - N} \right)} \right.} \right. \\ & \quad - \;4\left( {M - N} \right)^{3} \left. { - 2T^{3} } \right\} - 2hT^{3} + 2pI_{e} \left. {\left\{ {\left( {M^{3} - N^{3} } \right) - 3m\left( {M^{2} - N^{2} } \right)} \right\}} \right] < 0, \\ \end{aligned} $$
(19)

provided that \(\begin{aligned} & \Delta_{1} = cI_{c} \left\{ {6\left( {M - N} \right)^{2} \left( {1 + m} \right) + 3\left( {M - N} \right)^{2} - 6\left( {1 + m} \right)\left( {M - N} \right) - 4\left( {M - N} \right)^{3} \left. { - 2T^{3} } \right\}} \right. \\ & - 2hT^{3} + 2pI_{e} \left\{ {\left( {M^{3} - N^{3} } \right) - 3m\left( {M^{2} - N^{2} } \right)} \right\} > 0 \\ \end{aligned}\). Based on it, we have the following lemma.

Lemma 3

For fixed value of \(N\), the retailer’s profit function, \(TP_{12} \left( {N,T} \right)\), is a concave function of \(T\) provided that \(\Delta_{1} > 0\).

Proof

The proof is immediately follows from the above discussion.□

Next, for fixed value of \(T\), differentiating \(TP_{12} \left( {N,T} \right)\) in Eq. (11) partially with respect to \(N\), we have

$$ \begin{aligned} & \frac{{\partial TP_{12} \left( {N,T} \right)}}{\partial N} = \left[ {a - \left( {b + r} \right)} \right]pKe^{{\left[ {a - \left( {b + r} \right)} \right]N}} \frac{2m - T}{{2m}} - acKe^{aN} \left\{ {\frac{{\left( {1 + m} \right)}}{m} - \frac{{\left( {2 + 2m + T} \right)}}{{2m\left( {1 + m} \right)}}} \right\} \\ & \quad + \;\frac{{ahKe^{aN} }}{m}\left\{ {\frac{{T^{2} }}{6} - \frac{{\left( {1 + m} \right)T}}{2} + \frac{{\left( {2 + 2m + T} \right)}}{4} - \frac{{\left( {1 + m} \right)}}{2} + \frac{T}{4}} \right\} \\ & \quad - \;\frac{{acI_{c} Ke^{aN} }}{mT}\left[ {\frac{{\left( {1 + m} \right)T^{2} }}{2} - \frac{{T^{3} }}{6} + \frac{T}{2}\left\{ {\left( {M - N} \right)^{2} - 2\left( {1 + m} \right)\left( {M - N} \right)} \right\} + \frac{{\left( {M - N} \right)^{2} \left( {1 + m} \right)}}{2} - \frac{{\left( {M - N} \right)^{3} }}{3}} \right. \\ & \quad - \;\frac{{\left( {T + N - M} \right)\left( {2 + 2m - 3M + 3N + T} \right)}}{4} - \frac{{T^{2} }}{4} + \frac{{\left( {m + 1} \right)T}}{2} + \left. {\left\{ {\frac{{\left( {M - N} \right)^{2} - 2\left( {1 + m} \right)\left( {M - N} \right)}}{4}} \right\}} \right] \\ & \quad - \;\frac{{cI_{c} Ke^{aN} \left( {M - N - m} \right)\left( {M - N - T} \right)}}{mT} + \frac{{apI_{e} Ke^{aN} }}{T}\left[ {\frac{{\left( {M^{2} - N^{2} } \right)}}{2} - \frac{{\left( {M^{3} - N^{3} } \right)}}{6m}} \right]{ } - \frac{{pI_{e} Ke^{aN} N\left( {2m - N} \right)}}{2mT}, \\ \end{aligned} $$
(20)

and

$$ \begin{aligned} \frac{{\partial^{2} TP_{12} \left( {N,T} \right)}}{{\partial N^{2} }} & = - \left( {b + r} \right)\left[ {a - \left( {b + r} \right)} \right]pKe^{{\left[ {a - \left( {b + r} \right)} \right]N}} \frac{2m - T}{{2m}}{ } - \frac{{acI_{c} Ke^{aN} \left( {M - N - m} \right)\left( {M - N - T} \right)}}{mT} \\ & \quad - \;\frac{{cI_{c} Ke^{aN} \left( {m - 2M + 2N + T} \right)}}{mT} - \frac{{apI_{e} Ke^{aN} N\left( {2m - N} \right)}}{2mT} - \frac{{pI_{e} Ke^{aN} \left( {m - N} \right)}}{mT} < 0. \\ \end{aligned} $$
(21)

Based on it, we have the following lemma.

Lemma 4

For fixed value of \(T\), the retailer’s profit function \(TP_{12} \left( {N,T} \right)\) is a concave function of \(N\).

Proof

The proof is immediately follows from the above discussion.□

Case 2 \({\varvec{N}} \ge {\varvec{M}}\).

Taking 1st and 2nd partial derivatives of \(TP_{2} \left( {N,T} \right)\) in Eq. (12) with respect to \(T\) keeping \(N\) as fixed, we get

$$ \begin{aligned} \frac{{\partial TP_{2} \left( {N,T} \right)}}{\partial T} =& \frac{A}{{T^{2} }} - \frac{{pKe^{{\left[ {a - \left( {b + r} \right)} \right]N}} }}{2m} + \frac{{cKe^{aN} }}{{2m\left( {1 + m} \right)}} \\ &- \frac{{hKe^{aN} }}{m}\left( {\frac{m}{2} - \frac{T}{3}} \right) - \frac{{cI_{c} Ke^{aN} }}{2m}\left\{ {\left( {M - N + m} \right) - \frac{2T}{3}} \right\}, \end{aligned} $$
(22)

and

$$ \frac{{\partial^{2} TP_{2} \left( {N,T} \right)}}{{\partial T^{2} }} = - \frac{2A}{{T^{3} }} + \frac{{\left( {h + cI_{c} } \right)Ke^{aN} }}{3m} = \frac{1}{{3mT^{3} }}\left\{ {\left( {h + cI_{c} } \right)Ke^{aN} T^{3} - 6mA} \right\} < 0, $$
(23)

provided that \(\left( {h + cI_{c} } \right)Ke^{aN} T^{3} - 6mA < 0\). Based on it, we have the following lemma.

Lemma 5

For fixed value of \(N\), the retailer’s profit function, \(TP_{2} \left( {N,T} \right)\), is a concave function of \(T\) provided that \(\left( {h + cI_{c} } \right)Ke^{aN} T^{3} - 6mA < 0\).

Proof

The proof is immediately follows from the above discussion.□

Now, keeping \(T\) as fixed, differentiating \(TP_{2} \left( {N,T} \right)\) in Eq. (12) with respect to \(N\), we have

$$ \begin{aligned} \frac{{\partial TP_{2} \left( {N,T} \right)}}{\partial N} & = \left[ {a - \left( {b + r} \right)} \right]pKe^{{\left[ {a - \left( {b + r} \right)} \right]N}} \frac{2m - T}{{2m}} - acKe^{aN} \left\{ {\frac{{\left( {1 + m} \right)}}{m} - \frac{{\left( {2 + 2m + T} \right)}}{{2m\left( {1 + m} \right)}}} \right\} \\ & \quad + \;\frac{{ahKe^{aN} }}{m}\left\{ {\frac{{T^{2} }}{6} - \frac{{\left( {1 + m} \right)T}}{2} + \frac{{\left( {2 + 2m + T} \right)}}{4} - \frac{{\left( {1 + m} \right)}}{2} + \frac{T}{4}} \right\} \\ & \quad - \,\frac{{acI_{c} Ke^{aN} }}{2m}\left[ {\left( {N - M} \right)\left( {2m - T} \right) + \left\{ {\left( {1 + m} \right)T - \frac{{T^{2} }}{3} - \frac{{\left( {2 + 2m + T} \right)}}{2}\left. { - \left. {\frac{T}{2} + \left( {1 + m} \right)} \right\}} \right]} \right.} \right. \\ & \quad - \;\frac{{cI_{c} Ke^{aN} \left( {2m - T} \right)}}{2m}, \\ \end{aligned} $$
(24)

and

$$ \frac{{\partial^{2} TP_{2} \left( {N,T} \right)}}{{\partial N^{2} }} = - \left( {b + r} \right)\left[ {a - \left( {b + r} \right)} \right]pKe^{{\left[ {a - \left( {b + r} \right)} \right]N}} \frac{2m - T}{{2m}} - \frac{{acI_{c} Ke^{aN} \left( {2m - T} \right)}}{2m} < 0. $$
(25)

Based on it, we have the following lemma.

Lemma 6

For fixed value of \(T\), the retailer’s profit function \(TP_{2} \left( {N,T} \right)\) is a concave function of \(N\).

Proof

The proof is immediately follows from the above discussion.□

To determine the optimal values of the cycle time (\(T\)) and the credit period offered by retailer to the customers (\(N\)), differentiate the profit function \(TP\left( {N,T} \right)\) partially with respect to \(N\) and \(T\) and equating to zero, we obtain

$$ \frac{{\partial TP\left( {N,T} \right)}}{\partial N} = 0, $$
(26)

and

$$ \frac{{\partial TP\left( {N,T} \right)}}{\partial T} = 0. $$
(27)

Solving the Eqs. (26) and (27) simultaneously we obtain the optimal value of \(N\) and \(T\). The sufficient conditions for the profit maximization are as follows

$$ \frac{{\partial^{2} TP\left( {N,T} \right)}}{{\partial N^{2} }} < 0\;{\text{and}}\;\frac{{\partial^{2} TP\left( {N,T} \right)}}{{\partial T^{2} }} < 0. $$
(28)
$$ \frac{{\partial^{2} TP\left( {N,T} \right)}}{{\partial N^{2} }}.\frac{{\partial^{2} TP\left( {N,T} \right)}}{{\partial T^{2} }} - \left( {\frac{{\partial^{2} TP\left( {N,T} \right)}}{\partial N\partial T}} \right)^{2} > 0 $$
(29)

The profit functions of the present problem under various cases are highly non-linear and too complicated to solve. Further also it is not easy to show mathematically their concavity jointly, alternatively, we have shown the concavity of these profit functions graphically for all the cases and sub cases with the help of computer software MATLAB (see Figs. 4, 5, 6).

Fig. 4
figure 4

The concave property of the profit function \(TP_{11} \left( {N,T} \right)\) in \(N\) and \(T\)

Fig. 5
figure 5

The concave property of the profit function \(TP_{12} \left( {N,T} \right)\) in \(N\) and \(T\)

Fig. 6
figure 6

The concave property of the profit function \(TP_{2} \left( {N,T} \right)\) in \(N\) and \(T\)

5 Numerical examples

In this section, we consider the following examples to illustrate our proposed model.

Example 1

(Case 1 \(N < M\), Sub-case 1.2: \(N + T < M\)): Following parameters are presented to obtain the retailer's optimal solutions:

\(K = 3000\) units/year, \(a = 0.4\) units/year,\( b = 0.05,\) \(p = \$ 40\)/unit, \(c = \$ 4\)/unit, \(r = 0.06\), \(A = \$ 200\)/order, \(h = \$ 2\)/unit/year, \(m = 0.7\) year, \(M = 0.3\) year, \(I_{c} = \$ 0.1/\$ / \) year, \(I_{e} = \$ 0.15/\$ /\) year. Substituting these values in Eqs. (26) and (27), we obtain the optimum solutions for \(T = T^{*} = 0.0393\) year, \( N = N^{*} = 0.2606\) year and corresponding optimum total annual profit \(TP = TP_{11}^{*} = 111957.00\).

The sensitivity analysis of different parameters involved is carried out with the help of using same data as in Example 1. It will be helpful in decision making to analyze the effect of change of these variations. We then study the effect of the variations in a parameter on the optimal solutions keeping other system parameters same.

Example 2

(Sub-case 1.2 \(N + T > M\)): Following parameters are presented to obtain the retailer's optimal solutions: \(K = 3000\) units/year, \(a = 0.4\) units/year,\( b = 0.05,\) \(p = \$ 40\)/unit, \(c = \$ 4\)/unit, \(r = 0.06\), \(A = \$ 200\)/order, \(h = \$ 2\)/unit/year, \(m = 0.7\) year, \(M = 0.06\) year, \(I_{c} = \$ 0.1/\$ / \) year, \(I_{e} = \$ 0.15/\$ /\) year Substituting these values in the Eqs. (26) and (27), we get, the optimum solutions for \(T = T^{*} = 0.0512\) year,\( N = N^{*} = 0.0803\) year and corresponding optimum total annual profit \(TP = TP_{12}^{*} = 101605.80\).

The sensitivity analysis of different parameters involved is carried out with the help of using same data as in Example 2. It will be helpful in decision making to analyze the effect of change of these variations. We then study the effect of the variations in a parameter on the optimal solutions keeping other system parameters same.

Example 3

(Case 2 \( N \ge M\)): Following parameters are presented to obtain the retailer's optimal solutions: \(K = 3000\) units/year, \(a = 0.251\) units/year,\( b = 0.145,\) \(p = \$ 40\)/unit, \(c = \$ 4\)/unit, \(r = 0.06\), \(A = \$ 200\)/order, \(h = \$ 2\)/unit/year, \(m = 0.7\) year, \(M = 0.3\) year, \(I_{c} = \$ 0.1/\$ / \) year, \(I_{e} = \$ 0.15/\$ /\) year Substituting these values in the Eqs. (26) and (27), we get the optimum solutions for \(T = T^{*} = 0.0480\) year,\( N = N^{*} = 0.99\) year and corresponding optimum total annual profit \(TP = TP_{2}^{*} = 100811.10\).

The sensitivity analysis of different parameters involved is carried out with the help of using same data as in Example 3. It will be helpful in decision making to analyze the effect of change of these variations. We then study the effect of the variations in a parameter on the optimal solutions keeping other system parameters same.

Above observations can be summed up as follows: From Tables 1, 2 and 3, following inference can be made.

Table 1 Sensitivity analysis on parameters of Example 1
Table 2 Sensitivity analysis on parameters of Example 2
Table 3 Sensitivity analysis on parameters of Example 3

The sensitivity analysis reveals that: (1) a higher value of \(a\), \(K\), and \(p\) causes higher values of \(N^{*}\) and \(TP^{*} \left( {N^{*} ,T^{*} } \right)\) while a lower value of \(T^{*}\); (2) in contrast, a higher value of \(b\) and \(A\) causes lower values of \(N^{*}\) and \(TP^{*} \left( {N^{*} ,T^{*} } \right)\) while a higher value of \(T^{*}\); (3) a higher value of \(c\) causes lower values of all \(N^{*}\) and \(TP^{*} \left( {N^{*} ,T^{*} } \right)\) while a higher value of \(T^{*}\); and (4) conversely, a higher value of \(m\) causes higher values of all \(T^{*}\), and \(TP^{*} \left( {N^{*} ,T^{*} } \right)\) and lower values of \(N^{*}\). A simple economic interpretation of (1) is as follows: if \(a\) is higher, then the trade credit \(N\) makes demand (as well as annual profit) increase higher. Hence, a higher value of \(a\) causes higher values of trade credit \(N^{*}\) and annual profit \(TP^{*} \left( {N^{*} ,T^{*} } \right)\) while a lower value of \(T^{*}\) to reduce holding cost. For the given parameters (i.e., \(c\), \(p\) and \(K\)), the retailer would definitely place higher order cycle when deteriorating items exhibit a longer expiration date \(m\). That is, since deteriorating items can be kept for a longer time, the quantity and quality losses can slightly slowdown, which stimulates the market demand to some degree and ultimately enhances the retailer's performance. For the given expiration date \(m\), along with the increases of \(c\) (or decrease of \(p\) and \(K\)), the retailer's performance can be gradually weakened (improved). Further, it is apparent that the retailer's order incentive would be slightly impaired if more holding cost should be paid off. And the retailer would decrease order cycles when confronted with higher selling price or demand rate.

6 Conclusions

In this paper, we have developed an inventory model for deteriorating items with expiration date which are expected to experience both quantity loss and quality loss during the retail stage that can only be maintained within expiration date to investigate the optimal retailer’s replenishment decisions within the EOQ framework to reflect the realistic business situations. In addition, two-level trade credit has been incorporated to hedge against negative impacts of expiration date towards the retailer's order incentive. The supplier provides the retailer a delay period and the retailer also adopts the trade credit policy to stimulate his/her customer demand to reflect realistic business situations. The quantity loss decreases inventory level sharply, while the quality loss impairs customers' willingness to consume items, which ultimately influence the retailer's operation performance. This paper also considered a multiplicative demand function assumed to be function of the product freshness and credit period granted by the retailer, and also granting credit period increases not only demand but also default risk. First, we investigate the retailer’s inventory system for deteriorating items as a profit maximization problem to determine the retailer’s optimal inventory policies. From the view point of the profits, decision rules to find the optimal cycle time \(T^{*}\) and optimal credit period \(N^{*}\) contains two cases: (i) \(N \le M\) and (ii) \(N \ge M\). In order to obtain the optimal ordering policies, we propose some lemmas to help the retailer in accurately and quickly determine the optimal replenishment decisions under maximizing the annual total profit. Finally, we have used software MATLAB to study the sensitivity analysis on the optimal solution with respect to each parameter to illustrate the model and provide some managerial insights.

From the numerical analysis of Example 1–3, it is clear that the sub-case 1.1 (\(T + N \le M\)) is more profitable for all entities. Because in this case, the retailer receives sales revenue of all items at time \(T + N\) and is able to pay off total purchasing cost by \(M\). Therefore, there is no interest charged. On the other hand, during the period \(\left[ {N,T + N} \right]\) retailer can earned interest on the sale revenues received from customers and on full sales revenue during the period \(\left[ {T + N,M} \right]\). Thus, the retailer will follow sub-case 1.1.

This work can be extended in the following dimensions. One immediate possible extension could be allowable shortages, cash discounts, etc. Additionally, in traditional marketing and economic theory, price is a major factor on the demand rate. As a result, one could take pricing strategy into consideration in the future research.