A town house can be rented for P10,000 for three days, but for
the fourth day onwards, an additional cost of P3,000 per day is
added. Represent the cost of renting the town house as a
piecewise function of the number of days it is rented.
With cost being C, and number of days, d, we get: