This study is an inventory model with consideration of price, stock dependent demand, partially backlogged shortages, and two constant deterioration rates. In this model, demand function depends on price and stock while during the shortage time, demand depends only on price of the product. The deterioration is taken into account as a non-instantaneous, once the item is stocked in retailer's house, any time deterioration can start with a constant rate for a certain period, then this deterioration rate increases. Shortages are allowed and it is partially backlogged. The corresponding inventory problem constitutes a non-linear constraint optimization problem. Here this problem has been solved using Lingo 15 software and also give 3D graph with the help of MATLAB2010a to show the convexity of the objective function. Finally, to illustrate and validate the inventory model, a numerical example is used considering fixed price. To study the effect of changes of different inventory parameters, a sensitivity analysis has been carried out changing one parameter at a time holding other parameters unchanged.