Calculation formula

[(Value A + Value B)÷ Number of people required for the product ] Take the remainder +100000001