create simple calculate functional