外商員工的 RSU/ESPP 在台灣怎麼報稅,以及每年 12 月的獲利收割

在外商工作,公司常會給 RSU(限制型股票)和 ESPP(員工認股計畫)。這些股票在台灣要課兩次稅:拿到的時候算綜合所得,賣出的時候價差算海外所得。前者常常讓人一口氣跳到很高的級距;後者如果懂得利用最低稅負制的空間,每年 12 月可以合法地把成本墊高,以後少繳很多稅。

這篇整理我自己的算法和每年的固定動作。所有範例數字都是虛構的,稅率與扣除額用 115 年度(2027 年 5 月申報)的公告金額。

繼續閱讀

11 月就把明年 5 月的所得稅算出來:提前精算的方法

大部分人是 5 月打開報稅軟體,才知道今年要繳多少(或退多少)。如果你只有薪水,這樣沒什麼問題;但如果你有公司股票、獎金、海外投資,或收入每年變動很大,等到 5 月才算,很多能影響稅額的決定早就過期了。

這篇整理我每年 11 月開始做的事:在年底前把明年 5 月的綜所稅精算出來。包括什麼時候算、要準備哪些數字、還沒發生的收入怎麼估、怎麼確認算得對,以及算完之後可以做哪些決定。

這件事本來很花時間,今年我用 AI 協助整理資料和驗證,文中會在適當的地方說明它幫了什麼。

繼續閱讀

為你的開源專案加些文件 讓它看起來很專業吧

在 Github 上逛知名專案時,有沒有發現他們都有一個共同點: 文件豐富,有許多專案甚至會專門建立一個網站做

  • 簡介
  • Demo
  • API Documentation
  • Wiki
  • 論壇

看到這裡,你可能會說在小專案要求這些實在是太強人所難了吧。

其實啊,專案剛起步時,我們可以先從基礎的做起,例如這些被 check in 在各個知名 Git Repositories 中的文件

繼續閱讀

Unite Your Angular Coding Style With Teammates By Visual Studio Code & ESLint & Prettier

Brief

Hello Visitor ~

Todays I will guide you to setup Visual Studio Code and ESLint and Prettier, let editor auto-format and auto-fix your code for you and your coworker or contributor, it will becomes your lifesaver, free your hands on fixing errors and align coding style with teammates.

Let me read those documents, and organize things for you.

Steps

There are only 3 steps for you, it is very easy to follow my steps to set everything up

  1. Setup Angular and ESLint
  2. Integrate Prettier and ESLint
  3. Setup Visual Studio Code
繼續閱讀

Make your PowerShell fancy by Windows Terminal and Oh My Posh

Goals

Follow steps in this article, and the result will look like this

Steps

There are only 6 steps to do

  1. Install Windows Terminal
  2. Install posh-git and oh-my-posh
  3. Install powerline font
  4. Config powershell profile
  5. Config Windows Terminal Settings
  6. Config VSCode Settings

Maybe only need to takes 15 mins to set everything right.

繼續閱讀

代替 Illustrator 的免費繪圖軟體

平面設計的首選 Adobe Illustrator 專業好用,但價格昂貴,Adobe 提供了 7 天的試用期,試用期過後每月需花費 1000 元訂閱,但有時候我們只是想簡單地處理一些圖形,並不需要使用到這麼專業且複雜的繪圖功能 😔

那或許你可以試試這些開源(或免費)的繪圖軟體,有機會替你省下每個月 1000 元的 Adobe Illustrator 喔!

繼續閱讀

在 Mac 上 安裝 Docker for Mac

Install

目前 Docker for Mac 最方便的安裝方法就是使用 Homebrew Cask 安裝,打開 Terminal,輸入:

1
brew cask install docker

安裝成功後打開 Docker.app

第一次打開時會需要你的作業系統密碼,安裝額外的套件,提供完整的功能

當安裝完成後,我們就能在右上角的工具欄看到鯨魚 🐳 icon

繼續閱讀

Expression Index in RDBMS

What is the expression index?

According to the description from Wikipedia

An expression index, also known as a function based index, is a database index that is built on a generic expression, rather than one or more columns. This allows indexes to be defined for common query conditions that depend on data in a table, but are not actually stored in that table.

When you query on something that is computed from other columns frequently and want to speed it up, you will need this.

I will use PostgreSQL as an example in this article because it is my favorite database.

繼續閱讀

從 Ruby 到 C# - operators

Ruby 與 C# 的 operators 蠻相近的,應該說整個程式圈的 operators 都大概長那樣阿,嗯,沒錯,本篇完

欸,不是,我們快速帶過相同用法的 operators ,然後聊聊有差異的地方,這樣總行了吧

繼續閱讀