With calc we can do basic math operations on different types of css units
.calc {
width: calc(50vw - 100px);
}
With min we have a function which always selects the smaller value. This can be useful for images, if the full image can be displayed the width should match with the size of the image, if not we should use a smaller value depending on the users view-width
.min {
width: min(500px, 100%);
}