Please, I need urgent help with some math on the mining profit for some 120 GH/s rigs I bought, to be shipped in the beginning of May. According to CoinWarz, today I would earn US$5.31 a day on each one of them, without counting electricity costs.
Considering the difficulty goes up around 20.71% every 11 or 12 days, and it is going to adjust around the 5th of April, I would be earning around US$3.0197 a day by the 11th of May, which is about the time I would get them in my hands, right?
So I made a small bash script to calculate what I would earn in one year, based on my understanding, and still discarding electricity costs:
* First we multiply US$3.0197 by 12 to check what I would earn in the first 12 days:
x = 12*US$3.0197 = US$36.2364
*
y means all the money I have earned in the year, it starts at 0.
* One year has around 30 "groups" of 12 days: 365/12, which becomes the loop
{1..30} below.
x=36.2364
y=0
for i in {1..30}; do
x=$(bc -l <<<$(echo $x/100*82.85)) # x is reduced in every loop interaction
y=$(bc -l <<<$(echo $x+$y)) # y = x + y
echo $x dollars earned in this group of 12 days.
done
echo --- You will earn $y dollars in one year. ---
For me the result is 174.43 dollars in one year, which is less than what I paid for them. Also, in just a few weeks, I would be earning just a few cents a month, and I have totally ignored the electricity costs here.
I would be very grateful if I had some light shed here, and would be very happy, actually, if my math is totally screwed

Thank you!
The further out you go the less accurate your forecasting will be due to the volatility of BTC. Kudos on the code but you really need to understand you are mining one thing and calculating your return in an exchange format, doesn't work that way. The math might not be screwed but the market is, if this were predictable we wouldn't bother.