Custom shipping calculation using Miva template code