1 Introduction

The number of people with type–2 diabetes (T2DM) has increased worldwide. It is a metabolic disorder that includes insulin resistance, enhances insulin secretion and is one of the most common chronic diseases. The International Diabetes Federation (IDF) is predicted that the number of diabetic people (18–99 years) will increase to 693 million by 2045 as per the current data of global studies [1]. The UK Prospective Diabetes Study disclosed that a decrease in β-cell function acts before diagnosing T2DM [2]. The diminishing of primary insulin secretion has been an initial indication of T2DM. Higher postprandial blood glucose levels commonly consider the newly affected patient’s functions. Therefore, early insulin secretion is essential to decrease the disease progress [3].

Repaglinide (RPG), approved by food and drug administration (FDA) in the year 1997, is chemically known as (S)-2-ethoxy-4-[2-[[3-methyl-1-[2-(1piperidinyl)phenyl] butyl] amino]-2-oxoethyl] benzoic acid. It is a non–sulfonylurea insulin secretagogue with a benzoic acid structure. It belongs to the meglitinide class. The RPG’s sulfonylurea receptors (SURs) is adjacent to the ATP-sensitive K+ channel. Thus, it brings consequent Ca2+ entry through voltage-gated Ca2+ channels, subsequently exocytosis of Ca2+ reliant on insulin granules. It binds with the receptors on pancreatic beta cells and stimulates insulin release, decreasing glucose levels [4,5,6,7]. Therefore, lowering blood glucose with low insulin resistance avoids severe long-term complications like cardiovascular disease, stroke, renal failure and blindness.

Due to the functional significance of the drug RPG for D2TM, it is necessary to provide sufficient information to the researchers about the analysis of essential SUR receptors. This medication is very important due to its growing demands in our daily lives. It was one of the fastest-growing products in the treatment of D2TM. Hence, an extensive literature survey was conducted to determine RPG in API, pharmaceutical formulations and biological fluids. The quantitation was revealed with high-performance liquid chromatography (HPLC) [8,9,10,11,12,13,14,15,16,17,18], liquid chromatography connected with tandem mass spectrophotometry (LC–MS/MS) [19, 20], ultra-pressure liquid chromatography (UPLC) [21] and capillary electrophoresis (CE) [22] in bulk and dosage forms. But all these instruments require extensive cleanup procedures. High-cost solvents with complex instrumentation settings are not affordable for academics and small pharmaceutical companies. The analysis continued with UV–Vis spectrophotometry is developed [23,24,25,26,27] in pharmaceutical dosage forms. The charge transfer complexation is established with π acceptors' reaction in 2,3-dichloro-5,6-dicyano-1,4-benzoquinone (DDQ) and p-chloranilic acid (pCA) [23].

Generally, the optimization of UV–Vis spectrophotometric procedures includes a traditional one-time variable approach. The shortcomings correlated with this attempt required many experimental trials to achieve the goal. But the design of experiments (DoE), an analytical procedure could identify the impacts of multiple factors with their independent variables interactions on the dependent responses in pharmaceutical product/method development. DoE is widely applied to execute Quality by Design (QbD) in research and industrial design among several mathematical modelling attempts. QbD is an efficient effort in pharmaceutical development with predefined targets. It highlights that the product and process understanding is the critical enabler ensuring the final product’s quality risk management concepts. QbD consists of a thorough interpretation of the technical process and influences of its involved variables with the execution of those variables to attain the targets. The application of QbD will support skill and technical knowledge to assist pharmaceutical progress. The objectives included acquiring significant product quality specifications, enhancing the method’s ability to reduce product variability, improving pharmaceutical development and manufacturing proficiencies, and increasing causality analysis and regulatory compliance. The DoE application is highly dependent on characteristics of optimization design likely required number of trials, number of independent variables levels, and the number of dependent variables to be performed. Hence, three–levels of factorial Box–Behnken design (BBD) is designated involves fewer runs than the Central composite and Doehlert method, as well it performs without any points at the extremes of the cubic region formed by the two-level factorial level groupings with the influence of the parameter’s variables and responses that agrees on modeling of first and second-order response surfaces [28,29,30,31,32,33,34]. Response surface methodology (RSM) is a mathematical attempt to optimise complicated practices. It can enhance the determination of independent factors' interaction with lesser experiments, indirectly minimising the cost of analysis and ultimately improving the system's model, which significantly depends on the selection DoE. The aim is to suggest a design when many factors have less or more impact on the response to determine prominent influences and interactions. The consequences of the interaction between the variables are unnoticed to quantify RPG as per the literature. RSM combined BBD is an effective statistical method to optimize the variables in the analytical process [35,36,37]. This perspective can reduce the number of experiments in the investigations and build interactions between the variables. The desirability function also plays an important factor in optimizing the experimental conditions [38, 39]. The proposed study involved an RSM–BB design in optimising the kinetic spectrophotometric method for quantifying RPG. Fixed Time (ΔA) and equilibrium methods were developed depending on the reaction of the drug's amine group with 1-chloro-2,4-dinitrobenzene (CDNB) in dimethyl sulfoxide (DMSO) to form the Meisenheimer complex that measured at 423 nm against the reagent blank. The optimization process of BBD-RSM is quite exciting. It also enhanced the method’s ability and reduced the analysis time to determine RPG in pharmaceutical formulations.

Therefore, the current study suggested the following: (a) Developing the kinetic spectrophotometric procedures with fixed time and equilibrium methods. (b) Optimize the spectrophotometric processes using RSM–BB design. (c) The interaction between independent variables, the volume of CDNB (ml), heating time (minutes) and heating temperature (ºC), depends on its absorbance responses. (c) Analytical techniques were validated per International Conference on Harmonization (ICH) compliance. (d) Youden and Steiner’s factorial design verified the robustness test included chosen variables with proposed and alternate requirements in bulk, pharmaceutical dosage forms and biological fluid.

2 Experimental

2.1 Apparatus

The UV–Vis spectrophotometers (Jenway 6300 and Cecil, UK) measured the absorbance and recorded the spectra. To develop the colour product, a water bath shaker (Thermo Scientific, UK) recorded the reaction mixture's temperature.

2.2 Materials and Reagents

The stock solution of RPG (4.4 × 10–4 mol/l; NovoNorm, Novo Nordisk, Denmark; Repandin–1, Pharaonic and Repaglinide, Eipico, Egypt) was bought from the local pharmacy of Saudi Arabia and prepared in DMSO. The CDNB (2.5 × 10–3 mol/l; Sigma-Aldrich, USA) solution was prepared in DMSO daily and further diluted as per necessity. The carbonate buffer (pH 9.4) was prepared by dissolving sodium carbonate (26.5 g, Sigma-Aldrich, USA) and sodium bicarbonate (21 g, Sigma-Aldrich, USA) in 500 ml deionized water.

2.3 RSM-BB Experimental Design and Optimization

The Box–Behnken design approach was presented to optimize the experimental variables [40] with Design Expert 8.0.7.1 (trial version). It enhances the spectrophotometric optimization process with a minimum number of experiments. Three independent experimental factors and their influences were investigated to determine the RPG. The significant factors were volumes of 2.5 × 10–3 mol/l CDNB (A), heating time in minutes (B) and heating temperature in °C (C). The optimization was presented at three levels (Table 1): A: 1 ml (− 1), 1.5 ml (0), 2 ml (+ 1); B: 20 min (− 1), 25 min (0), 30 min (+ 1); C: 70 °C (− 1), 75 °C (0), 80 °C (+ 1) on the constraint of dependent variable absorbance as a response function [41] valued with total 17 trials. The relation which could be managed to establish the experimental runs expected for Box–Behnken design is indicated below:

$$N \, = \, k^{2} + \, k \, + \, C_{p}$$

where k = factor number, Cp = replicate the number of central points.

Table 1 Experimental levels of independent variables with dependent constraints and their codes in BBD

The RSM is a unique design to improve the trial data variables acquired from experiments resulting from the fitting analysis of the acquired data into the second-order polynomial model shown below as:

$$Y = \beta_{0} + \sum\limits_{i = 1}^{k} {\beta_{i} X_{i} } + \sum\limits_{i = 1}^{k} {\sum\limits_{j = 1}^{k} {\beta_{ij} X_{i} X_{j} } } + \sum\limits_{i = 1}^{k} {\beta_{ii} X_{i}^{2} } + \varepsilon$$

where Y specified the predicted response (absorbance) correlated with each factor level; Xi and Xj are independent factors’ coded values; β0 indicates to intercept (constant), βi, βii and βij represents the independent input variables of linear, quadratic and interactive coefficients, respectively.

2.4 Proposed Procedure for the Quantification of RPG

Different volumes of RPG (4.4 × 10–4 mol/l) corresponding to 2–20 µg/ml were transferred into a 10 ml volumetric flask. The volume of CDNB (6.25 × 10–4 mol/l) added into it, heating time (minutes) and heating temperature (ºC) were as per the BBD. After the reaction, a yellow color product developed and was measured at 423 nm against the reference blank. The optimized experimental conditions were applied throughout the analysis. The absorbance change with heating time like t1 (5 min) and t2 (10 min) based fixed time (ΔA) method was performed and included in constructing the calibration curve against the RPG concentration.

2.5 Determination of RPG in the Biological Fluid

To investigate the metabolic activity of biological fluid, drug-free urine samples were collected from healthy volunteers. Different aliquots from known concentrations of RPG were added with the urine sample and stored in the refrigerator. The samples were transferred into a separating funnel, added 10 ml of carbonate buffer (pH 9.4), and mixed well. The mixture was appropriately shaken and extracted with 10 ml of diethyl ether. The extraction procedure was repeated three more times for the complete recovery of the drug. The supernatant ether extract dried under the fume hood, and ether evaporated quickly due to its low boiling point. Then, the above procedure was followed to quantify the amount of RPG using the following regression equation in the biological fluid.

2.6 Procedure for Reference Method

Different concentrations of RPG corresponding to 40–200 µg were transferred into a series of 10 ml volumetric flasks. 1 ml FeCl3 and 1 ml 1,10- phenanthroline were added to each flask and mixed appropriately. It was then heated at 90 °C for 15 min, cooled it and added 2 ml orthophosphoric acid. Then, the solution was made up to the mark with distilled water. The quantitation of red-coloured product was recorded at 520 nm, and its assayed was calculated using the calibration curve method [27].

3 Results and Discussion

The Lewis and Bronsted bases interact with polynitroaromatic compounds, causing the development of the intensely colored product, which provides a way for limiting their quantity. The Meisenheimer complex product was assumed to form with the addition of dimethylamine and diethylamine as secondary amines with 1,3,5-trinitrobenzene in a DMSO medium [42]. The reaction was performed with optimized experimental conditions, which absorbed maximally at 423 nm. The blank comprising CDNB in DMSO has a characteristic band at 345 nm (Fig. 1). The mole ratio method determined the combining ratio between RPG and CDNB [43]. The findings noticed that the molar ratio was found to be 2:1 between RPG and CDNB. The reaction mechanism (Scheme I) was established as per the literature [44]. The formation constant and standard Gibbs free energy (ΔG°) were assessed, resulting in 1.6 × 105 and—35.97 kJ/mol, respectively, with RPG and CDNB.

Fig. 1
figure 1

Absorption spectra of a 2.21 × 10–5 M RPG in DMSO b 2.5 × 10–4 M CDNB in DMSO as blank solution (c) 4.4 × 10–5 M RPG + 7.5 × 10–4 M CDNB + DMSO as sample solutions

Scheme I
scheme 1

The reaction scheme produced the Meisenheimer complex with RPG and CDNB, measured at 423 nm with optimized conditions

3.1 Box–Behnken Model Fitting and Statistical Analysis

RSM is to be performed after precisely selecting variables that significantly affect the responses. It is usually achieved with screening designs, like factorial designs. The first-order designs assess the variable’s linear functions on the output. Still, the design could not estimate the curvature. However, second-order designs such as BoxBehnken, Doelhert and Central Composite can evaluate the variables curvature interaction and present it in terms of a quadratic equation. Among them, BBD is preferred because it needs minimum experimental trials and does not include any points at the edges of the cubic region. Initially, a model was generated with a traditional RSM design. The model was fitted after performing the experimental runs by incorporating the responses. Suppose the fitted model is insignificant in the first case. Then, repeated all the trials and re-design the model. Thus, making a model, performing the tests, and becoming a significant model fit might be time-consuming. Therefore, the selection criteria of the current investigation for the statistical design are to assess the interaction between independent factors with their responses applying the second-degree polynomial model. The RSM statistical design based on the BB design is advantageous over the typical method to optimize the several critical factors for the proposed study to estimate their influences. The suitable regression equation is achieved with the experimental data by comparing quadratic, linear and two-factor interaction models. The model was chosen based on the quadratic model due to its higher R2, low SD, higher F and lower p-value. The significance and pertinency of the selected model were confirmed by the analysis of variance (ANOVA) that comprises a summary and sequential model to attain the most significant experimental and predicted values.

The specific and collective influences of the method variables such as CDNB volume (A), heating time (B) and heating temperature (C) were evaluated utilizing the optimized BBD to quantify RPG. Absorbance was studied as a response parameter for this analysis. A complete summary of three-level factorial designs is presented in Table 2, where absorbance is indicated as a response parameter for this analysis. The absorbance values for 17 trials had revealed a difference in experimental values from 0.53 to 1.16 was very close to predicted values. Multiple regression was imperilled with the help of data to produce polynomial equations with 2FI, quadratic model. However, the model is significant with p values < 0.05 indicating that model terms are acceptable (Table 3). A positive value specifies concurring influences favouring optimization, whereas a negative sign epitomizes the factor's contrary effect, incompatibility on the designated response. The proposed mathematical model best fit the quadratic model based on the absorbance responses. The coefficients of the models were obtained to investigate the variables and their corresponding p-values. The variables were considered statistically significant, with the p-values were below 0.05 (Table 4). The R2 value was found to be 1, indicating the test variable was significant at the 5% level. The quadratic model has elevated values of the regression coefficient, R2 (0.9989), predicted R2 (0.9934), adjusted R2 (0.9977) with a minimal 0.0034 as standard deviation (SD) value. The empirical regression expression between absorbance and variables was acquired with the help of predicted and experimental absorbance response using the multi-regression analysis by the second-order polynomial equation in terms of coded factor as:

Table 2 Three independent variables influence the BBD experimental layout with observed and expected absorbances
Table 3 Sequential fitting model to determine RPG in pharmaceutical dosage forms
Table 4 ANOVA results and contribution of parameters in the Quadratic model to quantify RPG in pharmaceutical formulations

Absorbance = 1.07 + 0.0751 A + 0.1179 B + 0.075 C + 0.015 AB + 0.1338 AC + 0.0068 BC – 0.0635 A2 – 0.2175 B2 – 0.1338 C2.

The typical way for evaluating the influence of descriptive variables in regression analysis is ANOVA. Each variable accounted for a specific measure of the total variance of the dependent variable to quantify their relative contribution. There may be significant interactions between these variables that follow two or more independent factors that are significantly correlated. It indicates knowing which independent variable influences the variance justified in the dependent variable. The percentage contribution shows which variable has the most substantial impact in explaining the dependent variable with other variables in the model. The percent contribution (PC) associated with each variable was assessed using the formula:

$$PC \, = \, \left( {X_{i} /Y_{i} } \right) \times 100$$

where Xi and Yi are the sum of squares for each parameter and the model as represented (Table 4).

The percentage coefficient of variation (CV%) is typically evaluated by dividing the SD by mean multiplied by 100. It permits the difference between distributions of values for which capacity scales are not equivalent. The higher the CV value, the more broad the degree of scattering across the mean. The lower the CV value close to the mean, the more precise the value. The CV% of the reported model is very small, indicating that values are very close to the mean with predicted and observed values. The adequate precision usually measures the signalnoise ratio expected response associated with its related error. A ratio larger than four is advantageous for directing the model, with a higher observed value indicating adequate model bias. The achieved empirical data demonstrated an excellent relationship with expected data, showing the outcomes realistically for both studied responses. Lack-of-fit (LOF) shows us that a regression model is inadequate with experimental data. It is only possible to select insignificant variables and not to include critical conditions. It may also be for a reason that of poor experimental design. Therefore, large residuals or errors are seen when fitting the lack-of-fit model. The minimal LOF value indicates that the model is significant and selected independent variables are substantial with proper selection of experimental conditions.

The graphical approach is developed to validate the model and characterise the model's residual distribution. The normal plot of residuals typically evaluates how the normal probability is applied to assess the distribution of the model's residuals [45]. The residual’s normal probability plot (Fig. 2a) is relatively well-conducted against expected values. The ideal residual’s normal distributions reveal the accuracy of the expectations and the freedom of the residuals. The residual is usually distributed as a straight line, indicating no variance deviation that can prove experimental data’s normal distribution with the competency of the developed model. The observed against expected data used to plot predicted vs actual plot characteristically compares the null model with the recommended model that reveals its outcome with the projected against the real value. Figure 2b retains a relationship between perceived and actual data with experimental and predicted correlation (R2 = 1). All the points on the horizontal line also indicate a fitting model. The perturbation plot is generally appropriate to determine the crucial factors on the outcome. A factor's arc or steep slope indicates that the results are responsive to that factor. A reasonably flat line shows response inattentiveness to change over in that specific factor. The BoxCox plot indicates a guide for selecting the suitable power-law conversion for power transforms [46]. The transformation has been determined on the best lambda observed (± 0.01–3.0) at the lowest point of the arc formed by the natural log of sum squares of residuals. It alters the produced value related to the normal distribution optional when reasonable with non-normal data. The model was tested with each crucial transformation, confirming that no conversion is necessary (Fig. 2c). The perturbation plot (Fig. 2d) shows that the independent variables A and C had a similar effect to determine RPG. It also revealed that increased CDNB volume increased the absorbances. The rate of absorbances increased with the increase in RPG concentration, but after a particular volume, it was almost constant. But the steep curvature due to variable B recommends that the RPG’s responses were susceptible to this parameter. Therefore, the plot suggested proposed method’s absorbances were highly influenced by heating time (B) compared to CDNB volume (A) and heating temperature (C). The investigation affects the perturbation in the BoxCox unbiased regression with constant variance. It assesses the consequence of the critical perturbation factors on the power conversion related with the unbiased BoxCox regression model controlled by prominent studies on the biased estimation varied from the unbiased estimators. Therefore, conclude a diagnostic approach for evaluating the influences on the constant variance perturbation on the BoxCox biased regression model's transformation [47].

Fig. 2
figure 2

RSM-BBD model a Normal plot of residuals b Predicted vs Actual c BoxCox plot for power transforms d Perturbation

3.2 Model Optimization and Response Surface Plots

To optimize the proposed method, evaluate the minimum and maximum value of three independent parameters. The ranges of the independent variables are as follows: CDNB (1–2 ml), heating time (20–30 min) and heating temperature (70–80 ºC). The method was optimized with desirability function (= 1) selected for the equilibrium method. The desirability of 1.0 is attained with the independent parameter, and experiments were performed based on the predicted optimum values (Fig. 3). The results findings are a significant agreement with the expected values. The 3D and contour plots reveal the interaction between the two parameters even though maintaining constant with another variable. The absorbance value increases with the rise of heating time at heating temperature. This is because of the enhancement of molecular interaction but reaches stability after 25 min. No additional absorbance rise was observed, and 26.3 min of heating time was used as optimized time (Figs. 4a and 5c). It also found that absorbance increased with CDNB volume and was optimized with 1.92 ml at the constant heating (Figs. 4b and 5a). The heating temperature influenced the absorbance and its increases at constant volume. The maximum absorbance was achieved at 77.96ºC and utilized as optimum heating temperature (Figs. 4c and 5b). Therefore, different concentrations of RPG (4.4 × 10–4 mol/l) corresponding to 2–20 µg/ml were mixed with 1.92 ml CDNB (2.5 × 10–3 mol/l) into 10 ml volumetric flask. The mixture's temperature was controlled at 77.96 ºC for 26.3 min. The absorbances of yellow-coloured Meisenheimer complex was computed at 423 nm against reagent blank throughout the analysis of RPG in pharmaceutical formulations.

Fig. 3
figure 3

Optimization of three independent variables CDNB (1–2 ml), heating time (20–30 min) and heating temperature (70–80 ºC) with maximum desirability (= 1) a contour plots b cube desirability

Fig. 4
figure 4

Response surfaces plot due to the interaction a heating temperature and heating time b heating time and CDNB volume c heating temperature and CDNB volume to determine RPG in bulk and pharmaceutical formulations

Fig. 5
figure 5

The contour surface plot signifies the relations between a CDNB volume and heating time b CDNB volume and heating temperature c heating time and heating temperature to quantify RPG in bulk and pharmaceutical dosage forms

3.3 Analytical Data

3.3.1 Fixed Time Method

The concentration of RPG and corresponding absorbances were linear within the range of 2–20 µg/ml under optimized conditions. Initially, there was no change in color after mixing CDNB with RPG, but the reaction was resulted later by heating and absorbances of the colored product measured at 423 nm. The method was established with absorbance change as a function of time (Fig. 6). The difference of absorbance (ΔA) with time intervals 5 (10–5), 10 (15–5), 15 (20–5) and 20 (25–5) minutes was applied to build a regression equation against RPG's initial concentration. The regression data were assessed with excellent linearity, the SD of slope and intercept, variance, the limit of detection (LOD), and limit of quantitation (LOQ) and concise in Table 5.

Fig. 6
figure 6

The RPG a 3, b 6, c 9, d 12, e 15, f 18 and g 20 µg/ml and CDNB (5 × 10–4 M) generates absorbance-time curves in bulk and pharmaceutical formulations

Table 5 Summary of calibration equations of RPG at various fixed times

3.3.2 Equilibrium Method

The heating time was optimized for the yellow-coloured Meisenheimer complex at 30 min. The absorbance was measured at 423 nm for the quantitation. A calibration equation was made between concentration and its respective absorbance. The calibration curve revealed a higher correlation coefficient (r2 = 0.9999), which suggested outstanding linearity of the regression equation. The small values of the SD of slope and intercept recommended better reproducibility of the equilibrium method. The limit of detection and limit of quantitation were found to be 0.57 and 1.61 µg/ml.

3.3.3 Study of Accuracy and Precision

The intraday (repeatability) and inter-day (intermediate) precision were calculated with lower, medium and higher values of RPG within the calibration range. The study was carried out with 5, 10, 20 µg/ml with seven experiments in each level in one day. It continued with seven replicates of each level with seven different days using the same solutions. The results of 20 µg/ml are presented in Table 6. The % RSD values were 0.69–0.99 and 0.52–1.11% for fixed time and equilibrium methods with intraday and inter-day precision, demonstrating the current method's excellent precision. The fixed-time and equilibrium methods were established by recovery studies applying the standard addition method. The % recoveries and % RSD were within the ranges of 98.70–99.93%, 0.38–0.85%, and 98.07–99.90%, 0.64–0.93%, respectively, for fixed time and equilibrium methods. The outcomes were allowed generously within the acceptable limits of 98–102% and ± 2% (Table 7).

Table 6 Determination of RPG by fixed time and equilibrium method in pharmaceutical formulations
Table 7 Summary of statistics for the quantification of RPG by standard addition using fixed time and equilibrium methods in pharmaceutical formulations

3.3.4 Robustness Test

The robustness study was achieved as per Youden and Steiner’s robustness test [48] with slight changes with the optimized conditions applied for its determination. The traditional variables (upper case letter) and alternatives (lower case letter) were preferred and formulated to estimate the SD of eight experiments (Table 8). It is significant if SD were higher than the criteria, i.e. SD (s) multiplied by the square root of two (√2). The results were presented, and noticed all parameters were relatively robust (Table 9).

Table 8 The factorial sequence of the analytical parameters for robustness evaluation by Youden’s test
Table 9 Robustness test results as per optimized and alternative conditions according to Youden and Steiner’s study

3.4 Application of the Proposed Method

3.4.1 Determination of RPG in Urine Samples

The fixed time and equilibrium methods were utilized to determine RPG in biological fluid. Before analysis, a known amount of RPG was spiked to the sample within the proposed linearity range. The % recovery and % RSD were in the range of 97.65–98.77%, 0.43–0.87% and 97.59– 98.91%, 0.4–0.77% (Table 10). All the values showed that the complicated biological matrix did not interfere with the absorbances. Overall, the proposed methods were successfully developed and validated with accuracy and precision.

Table 10 Determination of RPG in human urine samples

3.4.2 Determination of RPG in Pharmaceutical Formulations

The point and interval hypothesis test was directed to evaluate bias [49]. The tests were performed to compare the proposed and reference methods findings at a 95% confidence level. The test procedure was acceptable when true to the average value within ± 2% of the reference’s method [27]. This can be written as.

0.98 < μ2 / μ1 < 1.02

which can be generalized to

θL < μ2 / μ1 < θu.

where θL and θU are lower and upper acceptance limits and calculated from the following quadratic equation [49].

$$\theta^{2} \left( {\overline{{x_{1}^{2} }} - \frac{{S_{p}^{2} t^{2} }}{{n_{1} }}} \right) - 2\theta \overline{{x_{1} }} \overline{{x_{2} }} + \theta^{2} \left( {\overline{{x_{2}^{2} }} - \frac{{S_{p}^{2} t^{2} }}{{n_{2} }}} \right) = 0$$

The lower limit (θL) and the upper limit (θU) of the confidence interval was obtained as

$$\theta_{{\text{L}}} = \frac{{ - b - \sqrt {b^{2} - 4ac} }}{2a}$$
$$\theta_{{\text{U}}} = \frac{{ - b + \sqrt {b^{2} - 4ac} }}{2a}$$
$${\text{where}},a = \overline{x}_{1}^{2} - \frac{{S_{p}^{2} t_{{{\text{tab}}}}^{2} }}{{n_{1} }}$$
$$b = - 2\overline{x}_{1} \overline{x}_{2}$$
$$c = \overline{x}_{2}^{2} - \frac{{S_{p}^{2} t_{{{\text{tab}}}}^{2} }}{{n_{2} }}$$

where x1 and x2 are average values with n1 and n2 measurements, Sp is the pooled SD value, t is the formulated one-sided t-value at 95% confidence level with n1 + n2-2 degrees of freedom. The calculated t- (paired) and F- values were below the theoretical ones suggesting considerable changes in performing the proposed methods with the reference method at a 95% confidence level (Table 11). All the samples' true bias was lesser than ± 2%, validating that the recommended methods were consistent with adequate precision and recovery.

Table 11 Fixed time and equilibrium method using point and interval hypothesis tests at a 95% confidence level to determine RPG in formulations

4 Conclusion

According to ICH guidelines, efficient and reliable RSM included BBD optimized kinetic spectrophotometric methods based on fixed time and equilibrium were developed and validated in bulk and pharmaceutical dosage forms. The factorial permutation of the selected variable’s influence with standard and alternative conditions was performed to determine Youden’s robustness test for both methods. The BBD reduced the number of trials indirectly decreased the time and cost. It was also able to assess involved significant independent variables on the response at the resulting enhanced settings: CDNB volume (1.92 ml), heating time (26.3 min) and heating temperature (77.96 ºC) with desirability function to quantify RPG within the linear dynamic range of 2–20 µg/ml short of any interfering from common bulking agents in the pharmaceutical formulations. The method's validity, accuracy and precision were evident from the statistical and diagnostic parameters attained. Therefore, the procedures fitting application with true bias computed for assessing RPG was within adequate limits with routine quality control samples, pharmaceutical dosage forms and biological fluid.