<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Nitesh Donti on Medium]]></title>
        <description><![CDATA[Stories by Nitesh Donti on Medium]]></description>
        <link>https://medium.com/@niteshdonti?source=rss-397c12a7ed74------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*FzPIHY-dU7t4G4E_oLgxoQ.jpeg</url>
            <title>Stories by Nitesh Donti on Medium</title>
            <link>https://medium.com/@niteshdonti?source=rss-397c12a7ed74------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 14:46:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@niteshdonti/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Why donating stock is better than donating cash — and how donor-advised funds can help]]></title>
            <link>https://medium.com/@niteshdonti/why-donating-stock-is-better-than-donating-cash-and-how-donor-advised-funds-can-help-64a87cdfe99d?source=rss-397c12a7ed74------2</link>
            <guid isPermaLink="false">https://medium.com/p/64a87cdfe99d</guid>
            <category><![CDATA[personal-finance]]></category>
            <category><![CDATA[charitable-giving]]></category>
            <category><![CDATA[donor-advised-funds]]></category>
            <dc:creator><![CDATA[Nitesh Donti]]></dc:creator>
            <pubDate>Thu, 04 Jun 2020 15:55:39 GMT</pubDate>
            <atom:updated>2020-08-19T17:08:06.496Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why donating stock is better than donating cash — and how donor-advised funds can help</h3><h4>Optimize your charitable giving.</h4><blockquote>TL;DR: Open a donor-advised fund, and significantly donate funds its in first year. Disperse these funds to charities of your choosing over the next few years. You will likely increase your tax deductions this way. Your funds also have the potential to grow (as they are invested), and you will increase your impact to charities by avoiding nuisances like credit card processing fees. If you can do so, donate appreciated stock (instead of cash) to your DAF, to allow charities to get substantially more (pre-tax) money and to allow yourself to write off more as a tax deduction.</blockquote><p>Donating money or assets to charities is a noble practice — one that’s especially useful to society today. A personal benefit you may get is the ability to write off the value of the donation as a tax deduction. However, the cash you donate is after-tax income, and oftentimes cannot be deducted in the first place. What if you could donate earned income before taxes are taken from it? That would mean that your <strong>donation to the charity is larger</strong> (and the associated <strong>tax write-off is larger as well</strong>). By donating shares of appreciated stock, you can do exactly that!</p><p>Due to the tax code*, if you donate stock you’ve held for over a year, you can write off the current fair market value of the stock, without paying any tax on the long-term capital gain. (Note that the price you initially paid for the stock was likely purchased with after-tax income).</p><blockquote>*This article is for informational purposes only. It is not intended to be tax advice or relied upon. You should consult your own tax advisors.</blockquote><p>For example, let’s say you purchased (or earned as after-tax compensation) 1 share of GOOG with a cost basis of $1000 two years ago, and the current price is $1400. If you donate this share, the charity gets the full $1400 value and you can write off $1400 as a tax deduction as well.</p><p>Instead, if you sell that share and donate the cash earned, the charity would get substantially less — and your tax deduction will be less by the same amount.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nQ4pe1qJmqjFYfKqzooGMA.png" /></figure><p>Take the following example* of tax due on the long-term capital gain of $400:<br><strong>~$116 (29.1%) due on the profit of $400</strong> when you first sell the share:<br>15% federal long-term capital gains tax (<a href="https://www.irs.gov/taxtopics/tc409">your federal tax bracket may vary</a>)<br>+ 3.8% Net Investment Income Tax (<a href="https://www.irs.gov/individuals/net-investment-income-tax">NIIT may not apply to you</a>) <br>+ 10.3% CA state income tax (<a href="https://taxfoundation.org/state-individual-income-tax-rates-and-brackets-for-2020/">you state+local tax rate/bracket may vary</a>).<br>*Use this <a href="https://smartasset.com/investing/capital-gains-tax-calculator"><strong>simple tax calculator</strong></a><strong> to see what taxes <em>you</em> would owe on long term capital gains</strong>.</p><p>If these savings seem small to you, then you can donate multiple shares of stock so that the value adds up to something huge :)<br>*As an important rule-of-thumb, when donating shares, always donate the ones with the <strong>largest</strong> long-term capital gain. This allows you to avoid the most tax liability, since the gain is donated and deducted pre-tax.</p><p>I know what you’re probably thinking – when you’ve donated money to charities in the past you typically didn’t sell shares and donate those proceeds accordingly. However, when you donate cash/money, you’re donating your after-tax income (based on your overall marginal tax rate, which could be as high as 47%–52% if you’re in an income tax-heavy state/locality).</p><blockquote>It’s much better to donate money before taxes are taken out — more money to charities, and higher tax savings for you!</blockquote><p>Use this <a href="https://smartasset.com/taxes/income-taxes"><strong>simple tax calculator</strong></a><strong> to see what marginal taxes <em>you</em> would owe on income</strong>.</p><h4>Benefits of bunching donations in one year</h4><p>Okay, well what about those of you who <strong>donate money to charities every year but cannot write off any of the charitable donations</strong> when filing taxes? With the Tax Cuts and Jobs Act of 2017, the standard deductions were set to $12,000 (filing single) and $24,000 (married filing jointly). If any potential itemized deductions you have (including charitable donations) do not reach those thresholds, then the donations themselves have not actually helped lower your tax burden (luckily they have still benefited the charities, which is great!).</p><blockquote>The solution to this is donating a significant amount of money in one year, and then foregoing tax-deductible donations in subsequent years. When you donate enough money to get past the standard deduction threshold, then each additional donation dollar can be deducted against your taxable income.</blockquote><p>For example, let’s say you pay $20,000 in state taxes during the tax year. You may deduct up to $10,000 of that if you itemize deductions (due to the <a href="https://www.irs.gov/taxtopics/tc503">overall limits placed on this</a>). Let’s say you also donated $130 worth of clothes to Goodwill and made other donations in cash to charities worth an additional $500. This $10,630 is less than the standard deduction ($12,000), so you smartly take the standard deduction instead. However, if you know that in the next 4 years you would ideally like to donate $1,000/year, and can afford to instead donate that money now, then you can donate the $4,000 in full this year.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q-8oGrzLFwQQHEkxyxZftA.png" /></figure><p>Now, your itemized deductions are $14,630 for the first year. This allows you to deduct an additional $2,630 that you would not otherwise be allowed to deduct. For every additional dollar you deduct from your taxes, you avoid paying taxes on it at your marginal tax rate — essentially, this bunching strategy allows you to profit $2,630*(marginal tax rate). In the next 4 years, you would just take the standard deduction (even if you decide to donate a little additional money during those years).</p><h4>Benefits of opening and using a Donor-Advised Fund</h4><p>All right, so you now agree that donating stock is better (to avoid long-term capital gains tax) and that bunching donations can allow you to actually write off most of your charitable contributions. But what if you aren’t ready to decide which charities to donate to and/or would rather donate money each year instead of skipping a few years? Well that’s where a donor-advised fund comes into the strategy.</p><blockquote>In the United States, a donor-advised fund is a charitable giving vehicle <strong>administered by a public charity</strong> created to manage charitable donations on behalf of organizations, families, or individuals [source: Wikipedia].</blockquote><p>Basically, you can donate cash/stock/whatever<strong>**</strong> to your own donor-advised fund (<em>DAF</em>), and later decide which charities to donate to, when to donate, and how much money to donate. If you donate shares to your DAF, it’s sold off immediately and the <strong>cash is there for you to disperse</strong> however you please. <strong>The tax write-off comes at the initial donation to your DAF </strong>(i.e. not when you disperse that money to charities later on).<strong><br>**</strong>certain private or restricted stock, options, and bitcoin may be eligible for donation. Contact the <em>public charity</em> to inquire.</p><p>Additionally, the <strong>funds</strong> in your DAF can grow (since they are <strong>invested in the market</strong>), so when you choose to disperse them to charities, you will (hopefully) have much more than you initially contributed.</p><blockquote><a href="https://www.fidelitycharitable.org/">Fidelity Charitable</a>, <a href="https://www.vanguardcharitable.org/">Vanguard Charitable</a>, <a href="https://www.schwab.com/donor-advised-fund">Schwab Charitable</a> are all <strong><em>public charities</em></strong> that can start a Donor-Advised Fund for you. Check online for directions.</blockquote><p>Funds are donated to many charities via Electronic Funds Transfer or check. Here, <strong>neither you nor the charity is paying a credit card processing fee</strong> (which can be up to a few percent of a donation through other common portals).</p><h4>Drawbacks of using a Donor-Advised Fund</h4><p>The main drawbacks of using a Donor-Advised Fund are the fees that the <em>public charity</em> charges to invest the funds that you donate to your DAF. The administrative fee for Fidelity Charitable, for example, is the greater of $100 or 0.6% of account balance per year (at the time of writing). There are also investment fees charged based on which mutual funds you invest your donation capital into, but these can be quite low.</p><h4>Other ways to use your Donor-Advised Fund</h4><ol><li>Name your DAF whatever you’d like (e.g. Donti Family Giving Fund)! Charities will see this name when they receive the donation (if you prefer).</li><li>Even with a fund name, you are <strong>always allowed to make individual donations completely anonymously</strong>, which is sometimes harder when you do not use a DAF. The donations technically come from Fidelity directly (or whichever <em>public charity</em> you decide to use).</li><li>What do you give to the person who has everything? <br><strong>Gift a donation grant! This is essentially a ‘gift certificate’</strong>, such that the recipient can direct an allotted amount of funds from your DAF to a charity of their choosing.</li><li>Allow others to donate to your DAF. You will still have control over the funds’ eventual charity recipient, but the originator of the donation will be able to use the tax benefit (if they itemize their deductions).</li><li><strong>Donate cash to your own DAF</strong>. You will get all the other benefits listed in this post, except for lowering your long term capital gains tax owed.</li><li>If your employer typically matches your charitable donations, have them match your eventual donation/disbursement to your chosen charities.</li></ol><p><strong>Summary</strong>: As a DAF facilitates both stock donation and donation bunching, the tax benefits to you and financial benefits to charities should more than outweigh any low-cost drawbacks.</p><p>This article serves as a starting point for your research into DAFs. Other online resources and especially information <a href="https://www.fidelitycharitable.org/faqs.html#contributions">directly from the <em>public charities</em></a> that can open a DAF for you will be instrumental in answering anything you need.</p><p>I encourage you to make charitable giving a regular practice for you and your family! Thanks for reading :)</p><h3>Guide: How to donate shares of stock to your new DAF</h3><p>Considering a main tax advantage we discussed comes from <strong>donating shares of stock to charities </strong>(via a DAF), the process to do so is <strong>surprisingly old-fashioned, time-consuming, and inefficient</strong>.</p><p>Unless you hold stock in the brokerage that hosts your DAF, donating/transferring stock to an outside brokerage requires a formal request to your current brokerage. Here’s my recent experience with transferring stock from my Chase You Invest brokerage account to my DAF in Fidelity Charitable:</p><ol><li>Let Fidelity know to expect an incoming stock donation from you. There’s usually an online form for this, or you can call in to let them know.</li><li>Find, print, and <strong>fill out an Outgoing DTC Request form</strong> from the Chase website. (This step is very easy to do, and has a handful of simple fields to fill.) State which shares you would like to donate, remembering to select the tax lots from which the shares have the lowest cost basis (highest capital gain).<br>Note: This stock transfer/donation should not cost you anything. It’s a free service.</li><li>Depending on your brokerage, you may be required to get this form <strong>notarized! </strong>For Chase, there was no other option or workaround. You can use any notary public, but your local bank branch can probably do this for you for free. Remember to not sign the forms till you’re in front of the notary.</li><li>Finally, you will need to <strong>fax this form</strong> to your brokerage. Consider using an e-fax service if you don’t want to use an actual fax machine.</li></ol><h4>Timeline and Requirements</h4><ol><li>After sending your form to your brokerage to donate your shares on your behalf, expect it to take 1–3 days to get to Fidelity.</li><li>Once Fidelity gets the shares and associates them to your DAF, expect the shares to sell within a couple days, and expect a couple more days before the associated cash is available to you to disperse to charities. Note that the cost basis of the donated shares is the middle price (between open and close) of the stock on the day of the sale.</li><li>Fidelity asks that you fund your DAF initially with $5,000. Though this is one of the lower minimums compared to other brokerages who offer DAFs, it is not exactly a requirement. A $5,000+ initial sum merely serves as a great foundation from which to start donating, while also making the annual fees (around $100 for a $5,000 account) seem reasonable. However, if you don’t have $5,000 just yet, it’s fine and you can use the DAF just like anyone else would.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64a87cdfe99d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Impress during a Data Structures & Algorithms Whiteboard Interview]]></title>
            <link>https://medium.com/@niteshdonti/how-to-impress-during-a-data-structures-algorithms-whiteboard-interview-81b794090f61?source=rss-397c12a7ed74------2</link>
            <guid isPermaLink="false">https://medium.com/p/81b794090f61</guid>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Nitesh Donti]]></dc:creator>
            <pubDate>Sun, 08 Sep 2019 02:02:22 GMT</pubDate>
            <atom:updated>2020-06-07T21:42:19.559Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AInGIUfK3N-N32qntvuzuw.jpeg" /></figure><p><em>If you’ve already mastered the technical skills required for a Data Structures &amp; Algorithms exercise, use this guide to improve your coding practices and technical communication skills.</em></p><p><em>The difference between a good interview performance and a great interview performance lies in the details.</em></p><ol><li>Make sure you <strong>fully understand</strong> the question. Try out a few examples and make sure the interviewer approves. Ask additional questions about the range of the input, and the size of the input, etc. No better way to waste valuable time than to solve the wrong problem or miss a big part of it.</li><li>Mention that you’re looking for <strong>corner cases</strong>. Try to find them. If you don’t find any, explain why there aren’t any.</li><li>Talk about your ideas for solving the problem. Aim for the brute force solution first if you need to (and mention that’s what you are doing).</li><li>Talk about <strong>other approaches </strong>you are considering. Talk about the pros/cons/tradeoffs. Mention both time and space complexities of those options.</li><li>Then, start coding your solution. Don’t just blindly code without some <strong>approval from the interviewer</strong> or without explaining why you’re choosing one option as opposed to a different design.</li><li><strong>Compartmentalize your code</strong>. If something needs to be a helper function, make it one. In fact, if the problem looks like it needs a large amount of code, just name your helper functions and mention that you will implement them with code later. However, note that you will have to convince the interviewer that you would have been able to finish writing out the implementation of those sub-functions if you run out of time.</li><li>Pick <strong>strong variable and function names</strong> that make sense. However, they should ideally be short, for ease of writing on whiteboards. Everyone knows that naming is a hard problem in software engineering. Do your best, but show that you actually care about good coding practices.</li><li><strong>Watch the clock</strong>! The onus is on you to make sure you finish your solution or wrap it up on time. Don’t rely on the interviewer to remind you. Before the interview starts, know its duration. Note that many interview rooms are booked only for a specific amount of time (applies to both phone interview and onsite). The interviewer may aim to leave a few minutes at the end for questions.</li><li>Focus on <strong>getting a working solution down</strong>. If you need to clean up parts of the solution or get rid of redundant steps, you can do that later.</li><li>Your interviewer will likely ask the <strong>time and space complexity</strong> of your final solution. <strong>Go section by section</strong> (e.g. each for-loop or helper function) and systematically calculate the answer. Don’t just give the answer off the bat for the whole thing.*</li><li>If you do think you can <strong>improve</strong> your time or space complexity, mention how, even if you don’t have time to code it. If you’re confident that you cannot, due to some mathematical property, you should mention that as well.</li><li><strong>Explain why your code works</strong>. Be sure to <strong>show an example case</strong> (a short one will suffice if you’re running out of time), but if you can actually prove that it works for all cases, that’s even better. For some problems, this may require some knowledge from your Algorithms class. For Dynamic Programming (DP), show why solving the subproblem leads to solving the overall problem (start with the base case). For greedy algorithms, you can show that the solution is a greedy algorithm and that’s why it always works.</li></ol><p><em>*Whatever you do, don’t BS the complexities or make arbitrary guesses — this looks bad. If you’re wrong about them, your reasonings to get to those answers will show only more red flags. Caveat: if there is an internal function or data structure whose complexity you don’t know, then mention that and hopefully your interviewer will assist you or you can use that function as a variable in your computed big-O notation.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=81b794090f61" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Adding Qi Wireless Charging to the Kindle Oasis, for under $8]]></title>
            <link>https://medium.com/@niteshdonti/adding-qi-wireless-charging-to-the-kindle-oasis-for-under-8-2705a04b4ce?source=rss-397c12a7ed74------2</link>
            <guid isPermaLink="false">https://medium.com/p/2705a04b4ce</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[wireless-charging]]></category>
            <category><![CDATA[kindle]]></category>
            <dc:creator><![CDATA[Nitesh Donti]]></dc:creator>
            <pubDate>Sat, 07 Sep 2019 23:54:09 GMT</pubDate>
            <atom:updated>2020-05-02T16:40:42.560Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*omzHhBusXR9AwbNDAnX5cg.jpeg" /><figcaption>Kindle Oasis charging via a standard Qi Wireless Charger</figcaption></figure><p>Amazon released an updated model of its premiere Kindle Oasis e-reader this summer (2019). This third-generation Oasis is nearly identical to the second-generation model from 2017, except for a new feature that allows the reader to change the color temperature of the display, which is especially useful for night reading.</p><p>Unfortunately, this means that the new Kindle Oasis does not come with an upgraded charging port, and instead still uses the outdated micro USB port (which many are <a href="https://blog.the-ebook-reader.com/2019/08/12/the-next-kindle-better-have-usb-c-to-avoid-a-revolt/">already complaining about</a>). A much better option would be the modern USB-C port, or even better: wireless charging!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V_4gKsTF33XNWSc5rBjtIA.jpeg" /><figcaption>Micro USB port still exists on the new (2019) Kindle Oasis.</figcaption></figure><p>To fix this, you can easily retrofit your own Kindle Oasis (or any other Kindle model) with wireless charging capability.</p><p><strong>All you will need to add wireless charging are 1) a case for your Kindle Oasis, and 2) a wireless charging receiver</strong>. Cases (<a href="https://www.amazon.com/dp/B07W1NVK5H?ref=ppx_pop_mob_ap_share">like mine</a>) can be found for $15 and up, and the wireless charger receiver costs less than $8! (If you aren’t yet ready to commit to a case, you can buy only the receiver and keep it secured to the kindle with tape, if you’d like.)</p><p>Buy<strong> a very narrow receiver</strong>: one that is narrower than the width of the Kindle Oasis’s bump, which my measurements show to be around 1.75&quot;. I recommend the narrowest receiver that I could find, which is listed at a <strong>width of 1.38&quot;</strong>, and costs less than $8 at the time of writing: <a href="https://www.amazon.com/dp/B072BSC4G2/ref=cm_sw_r_tw_dp_U_x_03.CDbVH1ZGJX">IGOUKJ Ultra Slim Portable Wireless Charging Receiver (Positive Direction Type A Receiver)</a>. Amazon sells many types of these receivers from a large variety of sellers. Feel free to choose whichever you’d like, but aim for as narrow a width as possible.</p><p>The height of the receiver will not matter much, as the Oasis is a tall enough device. The existing micro USB port on the Oasis has the <strong>narrow side up </strong>(sometimes called positive direction, or type A), so be sure to buy a receiver that supports that style of micro USB.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Iks7csP9hjCfe7R8_ChVqQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CxMEmrxL_P41Eoq2walnmw.jpeg" /><figcaption>IGOUKJ Wireless Charger Receiver (Positive Direction/Narrow Side Up) — 1.38&quot; x 2.56&quot; x 0.03&quot;</figcaption></figure><p>Plug the receiver into the micro USB port of your Kindle, and place the Kindle into your case, making sure that the receiver sits properly and comfortably under the device’s bump.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q1qm2hfyWGMJIvrx8g3Kyw.jpeg" /><figcaption>The narrower the receiver, the easier it is to fit it into the case comfortably.</figcaption></figure><h3>Once your case is secured, you’re ready for wireless charging!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aj-dXJ3AiJs2UX8jGe96ag.jpeg" /><figcaption>Finished product (Kindle Oasis with wireless charging receiver) charging on a wireless charging pad.</figcaption></figure><p>Note that the Kindle Oasis’s shape is not as convenient for wireless charging as those of the other Kindle models are, due to its bump. It may take some time with your wireless charger to find the right position and balance to get the device to charge. Once it starts to charge, it will continue to charge even if the Kindle Oasis’s bump is not completely touching the wireless charger (just like it’s doing in the title picture of this article). I promise — it’s still worth it, and certainly beats the inconvenience of micro USB and wired charging! A larger wireless charging pad with a greater number of coils has an increased available surface area, and will be more forgiving to an inexact placement of your Kindle (but any wireless charger should still work just fine). I recommend something like this: <a href="https://www.amazon.com/dp/B07PYQQ1R7/ref=cm_sw_r_tw_dp_U_x_z-UDDbBE6P6G9">CHOETECH 5 Coils Qi Dual Wireless Charger</a>.</p><p>If you ever need to fall back to the original micro USB port for charging (e.g. if you’re traveling and don’t have access to a Qi Wireless Charger), you can simply unplug the wireless charging receiver temporarily and use the micro USB port normally.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2705a04b4ce" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>