Before we dive into the complexities of calculations, it's crucial to establish a solid foundation by understanding the basics of…