Edited function calculate_monthly_total_sales to include a test for str, int and float.