create a calculate method that accepts a splat and does the correct operation