This [demo](https://codepen.io/MojtabaSamimi/pen/QWwGOmG?editors=0010) works; but this [demo](https://codepen.io/MojtabaSamimi/pen/eYmBeKy?editors=0010) does not. Basically the calc step is unable to figure out the direction of data since the values are in string format.