Using the VBA editor, insert a new module and create a custom function to calculate mileage. The function name should be mileage and the variables should be miles and rate. The function should multiply the miles by the rate. Press ENTER, and then close the VBA editor.