Looking to have a small app written that takes 4 different numbers and outputs a calculated result. It's primary purpose is for my personal use at work (and if any other co-workers use an android). I work in printing, and a job has a run length. The printed product is collated in to bundles or lifts, that we stack in a pattern in layers on a skid. For example, if the run length is 150,000 cps(copies), each lift or bundle contains 75 copies and you can stack on a single layer, 17 lifts. we put a max of 10 layers per skid. 75 cps x 17 = 1275 cps per layer cps per layer x 10 layers = 12,750 cps per skid. 150,000 / 12,750 = 11.76 skids. Now obviously we have to figure out how many layers and lifts are in the final skid. 150,000 - (12,750 x 11 ) = 9750, 9750 / 75 = 130 lifts on the last skid. 130 / 17 = 7 layers 130 - (7 x 17) = 11 lifts. the final output will display 11 full skids 7 layers 11 lifts 1,275 cps per layer 12,750 cps per box I wrote a quick webpage to do what i wanted. Here is the php code i hacked up to do the above calculations. PHP: $runcount = str_replace(",","",$_REQUEST['runcount']); $layers = $_REQUEST['layers']; $LperLayer = $_REQUEST['LperLayer']; $quantity = $_REQUEST['quantity']; $LiftersPerRun = $runcount / $quantity; $QperBox = $LperLayer * $quantity * $layers; $FullBox = floor($runcount / $QperBox); $x = $runcount - ($FullBox * $QperBox); $Layers = floor($x / ($LperLayer * $quantity ) ); $y = $x - ($Layers * ($LperLayer * $quantity )); $Lifts = ceil($y / $quantity); There are also times when we have a fixed run length and a fixed number of copies per skid, or a fixed number of skids that we need to use. for example, one of our jobs is 750,000 cps. each box has to have no more than 40,000 cps. each lift is going to be a fixed amount, i.e. 300 cps, and the number of lifts is also known, 16 per layer. The unknown here is how many layers per box and how many total boxes we will need. In all, i think we'll have 7 fields Run Length Copies per Lift Lifts per Layer Layers per Skid # of Full skids # of layers on final skid # of lifts on final layer. Perhaps we could fill in the known variables and the application would fill in the missing fields, regardless of what is needed.