..you might want to capture the foreground razor sharp and the background slightly blurred.

I am far from being a photography expert, so for me a tool like a depth of field calculator is very useful.

My favorite app so far is DoF Calc. for the Android

DoF Calc

In the words of the USMC oath “there are many like it” for both Android and iOS devices: