added tech_calc()

added tech_calc() finished and tested
fort_calc() finished and tested
siege_calc finished and tested