Creating a scripted calculation view