Skip to content

Commit

Permalink
Script for calculating VAT
Browse files Browse the repository at this point in the history
  • Loading branch information
robmiller committed Oct 19, 2023
1 parent d6fe688 commit 50d956c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/vat
@@ -0,0 +1,7 @@
#!/usr/bin/env ruby

amount = ARGV[0].to_i

printf "%-17s %d\n", "Amount:", amount
printf "%-17s %d\n", "VAT:", (amount * 0.2).round(2)
printf "%-17s %d\n", "Amount with VAT:", (amount * 1.2).round(2)

0 comments on commit 50d956c

Please sign in to comment.