Check out example codes for "css 100% -20px". It will help you in understanding the concepts better.

Code Example 1

width: calc(100% -150px);
width: -moz-calc(100% - 150px);
width: -webkit-calc(100% - 150px);

Learn ReactJs, React Native from akashmittal.com