Click here to view the derivations
Click here for the nail map