https://github.com/jnc8mc/IntensityCalculations