<s> from decimal import Decimal as D , ROUND_HALF_EVEN <EOL> def suggested_payment ( usage ) : <EOL> pct = D ( '<STR_LIT>' ) <EOL> rounded = nearest_5_calc ( usage , pct ) <EOL> return rounded <EOL> def suggested_payment_low_high ( usage ) : <EOL> lowpct = D ( '<STR_LIT>' ) <EOL> low = nearest_5_calc ( usage , lowpct ) <EOL> highpct = D ( '<STR_LIT>' ) <EOL> high = nearest_5_calc ( usage , highpct ) <EOL> return low , high <EOL> def nearest_5_calc ( usage , pct ) : <EOL> unrounded = usage * pct <EOL> rounded = ( unrounded / D ( '<STR_LIT>' ) ) . quantize ( D ( '<STR_LIT:0>' ) , ROUND_HALF_EVEN ) * D ( '<STR_LIT>' ) <EOL> return rounded </s>
