Katelyn is shopping for a cellular phone service. Trenton bell charges a monthly fee of $40 for up to 500 minutes. For every minute over 500 there is an $0.18 charge. Write a piecewise function to represent the cost of this plan