Understanding The GLAST Burst Monitor Detector Calibration: A Detailed Simulation Of The Calibration Including The Environment