Hello, i am newbie
I need a simple program that can calculate cut (digging) price,
because the difficulty of cut is increased per m depth, the price can't be equal.
for the first 1m depth of cut
the price for cut is $10/m^3
for 1m-2m depth of cut
the price for cut is $14/m^3
for 2m-3m depth of cut
the price for cut is $18/m^3
and so on (constant addition).
But, the value of the depth is random and can go really high, let's say 30 m, so using "if" is not edible,
Can anyone can help me to calculate this with a couple lines of codes only?
Thank you very much for your help.