public static void Main()
private static void CalculateZakat2022()
decimal usdToInr = 75.75m;
decimal taxRefund = 3127.00m;
decimal cashInHand = 300.00m;
decimal savings1 = 46730.00m;
decimal savings2 = 120537.00m;
decimal debts = 5000.00m;
decimal nextMortgage = 2200.00m;
decimal nextMonthExpenses = 3000.00m;
decimal nextMonthHomeImprovement = 0.00m;
decimal nextMonthTotal = nextMortgage + nextMonthExpenses + nextMonthHomeImprovement;
decimal goldWeight = 50m * 10m;
decimal goldPricePerGram = 63.75m;
decimal silverWeight = 15m * 10m;
decimal silverPricePerGram = 0.83m;
decimal goldTotal = goldWeight * goldPricePerGram;
decimal silverTotal = silverWeight * silverPricePerGram;
decimal total = cashInHand + taxRefund + goldTotal + silverTotal + savings1 + savings2 - debts - nextMonthTotal;
decimal finalTotalUSD = total * 0.025m;
decimal finalTotalINR = finalTotalUSD * usdToInr;
Console.WriteLine("Savings - 1: \t USD {0:0.00}", savings1);
Console.WriteLine("Savings - 2: \t USD {0:0.00}", savings2);
Console.WriteLine("Tax Refund: \t USD {0:0.00}", taxRefund);
Console.WriteLine("Cash: \t\t USD {0:0.00}", cashInHand);
Console.WriteLine("Total Gold: \t USD {0:0.00}", goldTotal);
Console.WriteLine("Total Silver: \tUSD {0:0.00}", silverTotal);
Console.WriteLine("Debt: \t\t USD {0:0.00}", (-1.00m * debts));
Console.WriteLine("Next Month Expenses: \t USD {0}", (-1.00m * nextMonthTotal));
Console.WriteLine("------------------------------------------------");
Console.WriteLine("Total Zakat: \t\tINR {0:0.00}", finalTotalINR);
Console.WriteLine("Total Zakat: \t\tUSD {0:0.00}", finalTotalUSD);
Console.WriteLine("Total Zakat sent on 01/25/2022: INR {0:0.00}", 225000);
Console.WriteLine("Total Zakat unpaid: INR {0:0.00}", finalTotalINR - 225000);
Console.WriteLine("Total Zakat unpaid: USD {0:0.00}", (finalTotalINR - 225000) / usdToInr);
private static void CalculateZakat2021()
decimal savings1 = 57972.01m;
decimal savings2 = 86520.71m;
decimal expenses = 7000.00m;
decimal cashInHand = 200.00m;
decimal taxRefund = 4772.00m;
decimal goldWeight = 30m * 10m;
decimal goldPricePerGram = 55.64m;
decimal silverWeight = 15m * 10m;
decimal silverPricePerGram = 0.77m;
decimal total = savings1 + savings2 - expenses + cashInHand + taxRefund + (goldWeight * goldPricePerGram) + (silverWeight * silverPricePerGram);
decimal usdToInr = 72.76m;
decimal finalTotalUSD = total * 0.025m;
decimal finalTotalINR = finalTotalUSD * usdToInr;
Console.WriteLine(finalTotalUSD.ToString("0.##"));
Console.WriteLine(finalTotalINR.ToString("0.##"));