Added calculation function example