<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Beembuilds</title>
    <description>The latest articles on DEV Community by Beembuilds (@beembuilds).</description>
    <link>https://dev.to/beembuilds</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F845266%2F2b6c8654-7c17-44b9-8291-d12c1ca4fc96.jpg</url>
      <title>DEV Community: Beembuilds</title>
      <link>https://dev.to/beembuilds</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/beembuilds"/>
    <language>en</language>
    <item>
      <title>VAT Calculator Online</title>
      <dc:creator>Beembuilds</dc:creator>
      <pubDate>Sun, 25 Sep 2022 20:07:07 +0000</pubDate>
      <link>https://dev.to/beembuilds/vat-calculator-online-4ipk</link>
      <guid>https://dev.to/beembuilds/vat-calculator-online-4ipk</guid>
      <description>&lt;p&gt;This is a VAT calculator that I made in Python3. It has the ability to add or remove VAT (20%) to any numerical value provided. The result then automatically copies to clipboard so that the value can be used where required. It is programmed to loop so that it can be used with as many values as needed.&lt;/p&gt;

&lt;p&gt;VAT calculator&lt;/p&gt;

&lt;p&gt;This is the code I used.&lt;br&gt;
import pyperclip&lt;/p&gt;

&lt;p&gt;vat = 1.2&lt;/p&gt;

&lt;p&gt;def remove_vat(x, y):&lt;br&gt;
    return x / y&lt;br&gt;
def add_vat(x , y):&lt;br&gt;
    return x * y&lt;/p&gt;

&lt;p&gt;while True:&lt;br&gt;
    print("#### VAT Calculator ####")&lt;br&gt;
    num = float(input("Enter Amount: "))&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;print("Choose Operation:")
print("1. Remove VAT")
print("2. Add VAT")

choice = input("Enter Choice(1/2):")
result = 0

if choice =='1':
    result = remove_vat(num , vat)
elif choice == '2':
    result = add_vat(vat , num)
else:
    print("Invalid Input")

print(round(result , 2))
pyperclip.copy(round(result , 2))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;I was inspired to make this because I was using an &lt;a href="http://vatonlinecalculator.co.uk/"&gt;online VAT calculator&lt;/a&gt; which was effective but I believed that I could speed up my workflow by making this simple tool and did not want to rely on an internet connection to be able to use it.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
