Assumptions for this example:
•   Current stock price:  $50 per share
•   Price per put option contract:  $3.00
•   Number of put option contracts:  5
•   Strike price of the put option:  $45
•   Expected stock price at expiration:  $40
Step 1:  Calculate the initial cost of the put options
The initial cost of the put options is the total amount you pay to buy the contracts. It is calculated as follows:
Initial cost = Price per option contract * Number of contracts
Initial cost = $3.00 * 5 = $15.00
Step 2:  Calculate the breakeven price
The breakeven price for a long put option is the stock price at which your option position neither gains nor loses value. It can be calculated as follows:
Breakeven price = Strike price - Initial cost
Breakeven price = $45 - $15.00 = $30.00
Step 3:  Calculate the profit at expiration
The profit at expiration for a long put option depends on the difference between the strike price of the option and the stock price at expiration. It is calculated as follows:
Profit at expiration = (Strike price - Stock price at expiration) * Number of contracts - Initial cost
In this example, the expected stock price at expiration is $40.
Profit at expiration = ($45 - $40) * 5 - $15.00
Profit at expiration = $5 * 5 - $15.00
Profit at expiration = $25 - $15.00
Profit at expiration = $10.00
Step 4:  Evaluate the profit
In this example, the profit at expiration would be $10.00. If the stock price at expiration is higher than the strike price ($45), the option would expire worthless, and you would lose the initial cost ($15.00). If the stock price at expiration is lower than the breakeven price ($30.00), your profit would increase.
Disclaimer
Keep in mind that this example assumes no transaction costs (such as commissions) and does not consider the effect of time decay (theta) on the option's value as time passes.
Please note that options trading involves significant risk and is not suitable for all investors. It's essential to fully understand the risks and consult with a financial advisor before engaging in options trading.