I have a math problem. I need to understand a pattern here so I don't have to write multiple range code. Here is the situation. Users will enter a number between $1-22$. The entry number needs to be divided by $46$. The max results that can get is $\frac{22}{46}$ which is $0.478$. Once I get that results I need to enter 1 into partial box. Now if the user enter any number between $23 \leq x \leq 46$ , I divide that number (can be any in that range) with 46. In this case I need to enter one into full box field. (ex: $\frac{29}{46} = 0.6303$) if the user enters a number between $47 \leq x \leq68$ there will be 1 full and 1 partial.
$69 \leq x \leq 92$ there will be 2 full No Partial $93 \leq x \leq 114$ 2 full and 1 Partial ( I need to enter 2 into the full box and 1 into partial) $115 \leq x \leq 130$ will be $3$ full No Partial ... and so On
Can someone tell me a patter or algorithm where I can find out when I need to have partial and when full or when I need full and partial at the same time?