Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ITS-454743 | added service calculator to Backoffice assets page. #3785

Closed

Conversation

lukaszkarykowski
Copy link
Contributor

No description provided.

timedelta = (self.buyout_date - today)
months = timedelta.days // 30
service = (int(self.service_cost) / months)
buy_rate = (self.price.amount / self.depreciation_rate) + 50
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why/what is 50?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is pattern what I receive to calculate profitability.

We can discuss this hole pattern on PM, if needed.

@hipek8 hipek8 closed this Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants