The compiler is showing "not all code paths return a value" for the CalculateCharges. Help!!
public decimal CalculateCharges()
{
decimal pay;
decimal decHoursParked;
decHoursParked = Math.Ceiling(_hoursParked);
if (decHoursParked <= 3)
{
pay = 4;
}
else if (decHoursParked > 3)
{
pay = decHoursParked * 2 - 2;
}
if (decHoursParked >= 24)
{
pay = 12;
}
}