Economic simulation right? A lot of variables and array manipulation must take into place. Lot of finite state machine would be involved to make the whole game works. And yes some math calculation can't be dismissed from expression. More importantly, start designing (make draft) how every mechanic will work an interact.