You can use calc in any GUI field. However, I think there may be some restrictions on using calc() with vh. I tried a few attempts but Chrome reported the rule to be invalid. calc(50vh) works, which is no different from 50vh, but calc(50vh – 100px) doesn’t. It seems browsers don’t support all combinations of units with calc().
I can offer some advice on alternative solutions if you would like to share your issue?