lazysheepmedia
Member
Good afternoon, I wonder if someone can help me with a cal question. I currently have a drop down with the raw values of 1 - 4 inclusive. My calc element works out the cost based on the number selected
$tenCalc = (int)'{fees___Number_Of_Tenants_raw}' * 175; return '?'.$tenCalc;
The 175 is the cost but if the number is 2 or more the cost is ?150 so for example
1 tenant = ?175
2 tenants = ?175 + ?150 = ?325
So what I need to do is calculate the total of the number of tenants if 2 or more. i am guessing it should be
if 1 tenant=total else 2+ tenants =total
Link for info
Hope that makes sense
Thanks
Mark
$tenCalc = (int)'{fees___Number_Of_Tenants_raw}' * 175; return '?'.$tenCalc;
The 175 is the cost but if the number is 2 or more the cost is ?150 so for example
1 tenant = ?175
2 tenants = ?175 + ?150 = ?325
So what I need to do is calculate the total of the number of tenants if 2 or more. i am guessing it should be
if 1 tenant=total else 2+ tenants =total
Link for info
Hope that makes sense
Thanks
Mark