Calculating surface integrals in Fortran 90 involves discretizing the surface into small cells to evaluate the contributions to the magnetic field from each cell. The integral to be solved is ∫∫(r-r').M(r').(|r-r'|^-3) dS', where r' represents the variable to be integrated and M(r') is the magnetization. There are no built-in functions in Fortran for directly computing such integrals, necessitating custom programming or finding existing software solutions. For those unfamiliar with electromagnetic theory, it is recommended to seek resources or forums focused on homework help in physics or calculus. Completing the assignment within the given timeframe is feasible, but it requires careful planning and understanding of the underlying physics.