Thursday, December 31, 2020

Fixed Deposits - Worst Investments for Long Term

 First time, I helped a person in filing a return who paid more income tax due to "income from other sources" than "income from salary" [Of course, by taking "income from other sources" to the top bracket].

The culprit is Fixed deposits.

That person is using FDs to save all her money and there is a significant amount in the Fixed Deposits. She does not need the money anytime soon and she put FDs with cumulative interest and automatic renewal.

One needs to pay the income tax on the entire interest that is realized every financial year. Even if one does not take the interest from the FD, even if the FD is not closed/renewed in that financial year, still the tax has to be paid, because the bank is adding the interest to the FD and it is income for you. You need to pay tax on the interest at the top bracket.

If you are having significant money in the bank, you would be forced to pay a lot of tax.

FDs are the worst possible investments especially for long term. One should use FDs only to keep money for emergencies or to use in the next few months.

For short term investment, I recommend Liquid Mutual Funds (or even Debt MF). With Liquid (or Debt) Mutual Funds, one needs to pay the tax only at the time of withdrawal. If we withdraw after 3 years, the profit is adjusted with the inflation, and the tax would be even less.

For long term investment (6 years or more), I recommend either Equity Mutual Funds or Land.

Monday, December 07, 2020

Freedom in Agriculture

If I am doing a transaction with a person/organization, and if anyone is trying to stop that by any unfair means, I consider the people/organizations who are trying to stop that transaction as criminals. However they have full freedom to convince the person/organization transacting with me, to not transact with me. They have full right even to offer bribes to the other person. But, they do not have any right to threaten them to not transact with me. Those whoever threatening or stopping the transaction by any other way are criminals in my point of view (irrespective of whether the law of the land says it or not).

If I am a farmer and if I can find someone who is ready to purchase my produce for a mutually agreeable price, and if anyone tries to stop that transaction by unfair means, they are criminals in my point of view. 

Fair means to stop the transaction means, atleast one party should be better off by cancelling the transaction [Other party can be worse off]. Unfair means, neither party would be better off by cancelling the transaction. 

Few examples of the fair means to stop the transactions are,

Offering higher price to me, so that I can sell the produce to you rather than the other person.

Offering lesser price to the other person, so that they would buy the produce from you rather than from me. 

Giving some additional goodies to either of them, like free transport, free loading/unloading or anything that is typically done before or after the purchase.

Few states legislated that, the sell price must not be less than the minimum support price. If anyone buys for lesser price, they would be imprisoned. 

If the Government is ready to buy from everyone for minimum support price, then why do they need to legislate that? Why will someone sell for a lesser price, when the government buys from the farmers at a higher price? That legislation will only be (mis)used to blackmail few vendors, and never required for ethical reasons. 

If the Government is not going to buy from everyone, and if vendors are not ready to buy at government set price because of lack of market, what would happen? If one has to follow the legislation, then the farmers have to burn all their produce because no one was willing to buy that. For the ignorant people, there are many farmers, who burnt their farm without plucking anything from that (for different reasons).

If they are given the option to sell for a lesser price, atleast they would get some amount rather than zero. 

Even when the government is ready to buy from everyone for Minimum Support Price, still, few farmers may sell for a lesser price to few vendors for other reasons. The cost of plucking, transport to the nearest market etc., are significant in the cost to the farmer. If the vendor is ready to take care of all those, then it makes sense to the farmer to sell it to that vendor for a lesser price rather than seemingly higher Minimum Support Price.

Each individual knows what is best for them. It is a crime to interfere in others' matters. The maximum thing that one can do is, convincing the seemingly losing party.

Friday, December 04, 2020

C# Code for Validating Azure B2C Token

string tenantId = "FA368AEE-7911-41FA-9E16-D5B6A663777D";
string clientId = "2906B74F-96A9-45AA-BA1B-5175830991AF";
string validIssuer = $"https://contoso.b2clogin.com/{tenantId}/v2.0/";
string keysIssuer = "https://contoso.b2clogin.com/contoso.onmicrosoft.com/B2C_1_signup_signin/v2.0/.well-known/openid-configuration";

var signingKeys = new ConfigurationManager<OpenIdConnectConfiguration>(keysIssuer, new OpenIdConnectConfigurationRetriever()).GetConfigurationAsync().Result;

SecurityToken securityToken;
var tokenHandler = new JwtSecurityTokenHandler();
var claimsPrinciple = tokenHandler.ValidateToken(token, new TokenValidationParameters() { 
	ValidIssuer = validIssuer,
	IssuerSigningKeys = signingKeys.SigningKeys,
	ValidateAudience = true,
	ValidAudience = clientId
}, out securityToken);