• Clent@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    16
    ·
    2 days ago

    This is software engineering and apply basic of statement logic, the hourly rate is the last if statement that was true.

    Personally, I make it acccumlate the rate for a max rate of $520 when all if statements match.