calculating properties of items in a class
i need to calculate some properties for items in a class ive created called options.
I want to calculate the properties a few differnet ones overall but i dont want to use a for loop as i will to calculate for a specific one at any one time. The calculation changes based on whether the option.type is either a call or a put. Can anyone help with this problem? Code below: