add calc mixin

add calc mixin