所得税額 = (所得金額(A) - 所得控除額(B)) × 税率 - 税額控除額(C)
- 「所得金額(A)- 所得控除額(B)」は 課税所得金額 といい、1,000円未満の端数を切り捨てる。
| //: Playground - noun: a place where people can play | |
| import UIKit | |
| protocol ContextInjectable { | |
| associatedtype Context = Void | |
| func inject(_: Context) | |
| } | |
| extension ContextInjectable where Context == Void { |
| +------------------------------------------------+ | |
| | active | | |
| +------------------------------------------------+ | |
| ^ | | |
| | | | |
| didBecomeActive willResignActive | |
| | | | |
| | v | |
| +------------------------------------------------+ | |
| | inactive | |
| interface Done<T> { | |
| type: 'done'; | |
| result: T; | |
| tail: string; | |
| }; | |
| interface Failed { | |
| type: 'failed'; | |
| }; |
| import { Prisma } from '@prisma/client' | |
| interface Omit { | |
| <T extends object, K extends [...(keyof T)[]]>(obj: T, ...keys: K): { | |
| [K2 in Exclude<keyof T, K[number]>]: T[K2] | |
| } | |
| } | |
| const omit: Omit = (obj, ...keys) => { | |
| const ret = {} as { |