Namegarage

Adding up the public sales record

Dev blog#website#sales

The completed sales page adds the prices that buyers can see in the sales list. The calculation starts with the records already approved for display. A confidential price contributes nothing, and a lease stays in its own section while the buyer is making payments.

The original-dollar total adds the sale prices as recorded. To estimate their buying power in the reference year, the builder uses the same US Consumer Price Index as the individual sale rows. It converts each earlier price using the index for the sale month, or the annual average if that month is missing. Sales in the reference year enter at face value.

The builder keeps the converted values as exact fractions until it has added them all, then rounds the total to the nearest $10. This lets the total reflect the underlying prices even when individual rows round in different directions. If a disclosed price has no usable date or index, the page shows the original-dollar total alone.

Add as preferred source
Hacker News X LinkedIn Email

Using this button loads Google’s service and allows its usage measurement. Privacy policy.

Get new blog posts by email

Comments

Comments are reviewed before publication. The Author badge marks replies from the author.

Read approved comments on the discussion page.

    Open the discussion page

    Leave a comment

    Your account name, sign-in provider, and comment become public after review. Your email stays private. See the blog comments privacy notice and Privacy Policy.

    Sign in to leave a comment.