I wrote a free spec script for a charity organization, enabling me to write off ~$50k in charitable donations for putting in a few hours of work.

Everyone should be looking for loopholes and ways to prevent the US government from getting their money.

I asked a CPA about this idea a couple months ago and was told that it doesn’t work that way, and everything I can find on the internet backs that up. Can you provide a source saying otherwise?
I’m gonna agree with you. If OP gets audited, this will not hold up. OP cannot deduct money for a service that the charity pays nothing for. Only unreimbursed or out of pocket expenses can be deducted this way

If OP gets audited, this will not hold up.

The IRS actually already did look it over. They decided (rather arbitrarily) that the script I donated was worth ~50,000 instead of ~70,000 as I was trying to claim. Definitely not a full audit, but they already reviewed it at some level and it passed muster.

Right because you’re donating intellectual property which is property. And that distinction is fucking nonsense but here we are.

They’d be like “hey now, this didn’t cost you that.”

But would not that depend on how OP’s time is valued in this case? OP could argue that their expertise costs $14000/hour ($70000 over 5 hours). I am sure that they would argue the hour cost, I have not clue how the IRS handles something like this.

As I understand it, technically the “thing of value” is the script itself - because it doesn’t have a clearly defined value you can get away with claiming some fairly crazy valuations.

There’s a very similar tax loophole popular with the wealthy where you get a “great deal” on some slightly valuable art, donate it to charity, get it valued by an “expert” you know, who just happens to think it’s worth many times what you paid, then write that off on your taxes. Basically free money.

Do you know if this expert has to have some kind of credentials? Or could John Smith start a non-profit, Jenny Smithy have James Smithens who is an “expert” say the value (of some object) is more than Jenny owns, have Jenny donate this object to John’s non-profit and then tax $0?

(I know it technically can be done, but do you know if there is some threshold were it will be flagged? Writing of more than you own would be a flag and call for an audit but what about something worth $1000?)