Problem: A computer shop charges 20 pesos per hour (or a fraction of an hour) for the first two hours and an additional 10 pesos per hour for each succeeding hour. Represent your computer rental fee using the function R(t) where t is the number of hours you spent on the computer.
My answer: $$R(t) = \cases{20 \text{ pesos} & if $0 <t\le 2$\cr ({t-2}) \cdot 10 \text{ pesos} +40 \text{ pesos} & if $t>2$}$$
Please correct me if I have any mistake.