add calculate function and test
add test for calculate imported goods