‘given’ Returns Values 

my $rate = do {
    given($total_earnings) {
        10.5 when $_ <= 14_000;
        17.5 when $_ <= 48_000;
        30.0 when $_ <= 70_000;
        33.0;
    }
};