That's correct.その通りです。
You got it.その通りだよ。
These two phrases mean the same thing.この2つのフレーズは同じ意味です。
That's correct is a little more formal, and you got it a little more casual.「That's correct」の方が少しフォーマルで、「you got it」の方が少しカジュアルです。
That's correct.その通りです。
You got it.その通りだよ。