https://drafts.csswg.org/css-animations/#animation-duration
From the spec, it's not clear whether calc() function can be used for animation duration or not. At the moment, I see Chrome supporting it but firefox doesn't.
This clearly has advantage in conjunction with CSS custom properties. Here's one such example.
https://codepen.io/praveenpuglia/pen/RVWKew/