Fortunately, it really isn't "math", just "arithmetic" - dividing inches into pixels to derive pixels per inch (or pixels per inch into total pixels to derive inches) and deciding how many pixels you should print (i.e. the crop) to get enough inches at the desired pixels per inch. :-)