Here’s a program I made for calculating the odds for battles in Axis and Allies 1940 (download link at the bottom). Making this program was largely motivated by the lack of a battle calculator for this version. This program is also released under the GPL.

Features:

Land and naval battles

Coastal bombardments from Cruisers and Battleships

Option for ground units that must survive to capture the territory

Option for aircraft that must land on an Aircraft Carrier

User specifiable option for how many trials to do

Follows combat rules from Axis and Allies 1940 (Europe and Pacific) such as:

Regular land battle rules (dice rolling)

Order of taking casualties

Submarine first strike and can be negated by Destroyer

Planes cannot hit Submarines unless the planes are accompanied by a Destroyer