calc mixin and case