The calculation of proton penetration and dose rates