Template talk:Uspop

(Redirected from Template talk:Uspop/doc)
Latest comment: 14 years ago by Patrick in topic Template:Data United States

Untitled

edit

{{#expr: 299886984 + daily_increase * ( {{date serial|{{CURRENTMONTH}}|{{CURRENTDAY}}}} - {{date serial|10|2}} ) }}

299,886,984 on October 2, 2006 plus an increase of 8,640 per day. See the Census Bureau's U.S. POPClock Projection. --Uncle Ed 19:51, 2 October 2006 (UTC)Reply


Note: daily_increase is actually 86,400 / 11 (one new person every 11 seconds). --Uncle Ed 13:13, 11 October 2006 (UTC)Reply

  • The US pop clock estimate is 299,965,789. The current display here is: 299,973,389
  • Does it update only once per day?
  • I suspect it's somewhere between 10.5 seconds and 11 seconds --JimWae 00:49, 13 October 2006 (UTC)Reply
The figures agree to within 99.997% which is far better than the accuracy of the estimate. No one thinks the U.S. Census is much better than 99.8% or 99.9% (around half a million people aren't counted). What's 0.5 / 300 ?
Our copy updates at midnight, Greenwich time, once a day. When it reaches 300 million, I'll reset the "base" and the daily_increase. --Uncle Ed 14:04, 13 October 2006 (UTC)Reply


I have changed the daily increment so that it does not get so far ahead of the pop clock - though it still needs tweaking. Btw, the uspopcomma template wipes out leading zeroes so that when 300 million is reached it will look like 300,, or something similar, then later 300,1,1. Can you fix that? --JimWae 05:13, 17 October 2006 (UTC)Reply

I think I've fixed it, although I was in too much of a rush to test it thoroughly before saving the fix. Please review my code! --Uncle Ed 13:54, 17 October 2006 (UTC)Reply
  • {{formatnum:{{#expr: 300000000 + (11000) * {{Age in days|month1=10|day1=17|year1=2006}} }} }} returns 372,776,000 w/o needing extra uspopcommas template --JimWae 05:05, 1 January 2007 (UTC)Reply

Days to milestone

edit

Daily increase =  

 

I expect estimated U.S. population to top 300 million on October 17, 2006. --Uncle Ed 14:22, 13 October 2006 (UTC)Reply

April 2008

edit

I have been in contact with the uspopclock website. They have clearly stated that they change the increment each month, as they expect a different birthrate. I suspect, and am trying to get confirmation, that they adjust the beginning population for each month also. They seem reluctant to just tell us the numbers needed to "make" this clock correspond with theirs. One way to get the daily increment for a month is to just check in at the exact same time 2 days in a row --JimWae (talk) 01:23, 4 April 2008 (UTC)Reply

The scientific notation problem happens when the number ends in 5 zeros (or more) - and it depends then on which of the wikipedia servers renders the number - it does not ALWAYS happen when the number ends in 5 zeroes. There is as of 2008, no fix --JimWae (talk) 07:01, 9 April 2008 (UTC)Reply

How I figured the code for June 2008

edit

From US pop clock:

304,322,761 pop at 2008-06-12 22:14

304,333,393 pop at 2008-06-14 03:22

10,632 people in 1.2139 days

10,632/1.2139 = 8,759 people per 1 day


2008-06-01 00:00 is 11.92638889 days before 2008-06-12 22:14

11.92638889 x 8,759 = 104,459 less people

304,322,761 - 104,459 = 304,218,302 people on June 1

--JimWae (talk) 03:55, 14 June 2008 (UTC)Reply

Template:Data United States

edit
There is now Template:Data United States for this kind of data. The advantage is uniformity among countries.--Patrick (talk) 00:36, 19 August 2010 (UTC)Reply