To calculate the force between two electromagnets, the Biot-Savart law is applicable when they are close together, while they can be approximated as dipoles if they are far apart. The user has two iron cores measuring 10mm in diameter and 20mm in length, with coils of 500 turns using 0.3mm wire, capable of carrying 0.2 Amperes. The distance between the electromagnets ranges from 2mm to 15mm. Basic formulas for these calculations can be found on Wikipedia. Understanding the complexities of these forces is essential for accurate computation.