crater calculation