How to estimate the optimal fee for transaction(Segwit addresses)?
Legacy input size: 148 bytes (compressed)
Legacy output size: 34 bytes (compressed)
Segwit input size: 104 bytes 
Segwit output size: 32 bytes


so if your transaction has two inputs and one output total size is ~ 246 Bytes, Don't forget about some more additional bytes for transaction header.