The formula for combat power is not public so these are always estimations. Use as reference.
The calculator is made by Kusanagi, an amazing NIKKE content creator and streamer, go check him out. The calculator is also open source, so if you want to learn how it works, you can check here.