I wanted to perform the calculation with the ternary operator in my javascript something like below:

```
object > (50% - 10px) ? doThis : doThat

```

here the (50% - 10px) won't work but like (50 -10) would work. So how do I calculate the values with percentage and pixels?