Jump to content
House Price Crash Forum
Sign in to follow this  
Guest unregistered

Live Us Trade Deficit

Recommended Posts

that would be a good idea,

could be done easily in Java or CGI.

I'd wait until YOY figures start to go negative but that could be soon, so maybe we could get it built ready.

Share this post


Link to post
Share on other sites
Guest consa
that would be a good idea,

could be done easily in Java or CGI.

I'd wait until YOY figures start to go negative but that could be soon, so maybe we could get it built ready.

Well done!! :)

I will place it over on **** and I am sure the wemaster would place it nicely here

Edited by consa

Share this post


Link to post
Share on other sites

Ok I have come up with this so far,

javascript to be either put in html page or made in to a .js file

just need to check maths in it

figures in red would need to be changed on each release of new data

<HEAD>

<script LANGUAGE="JavaScript">

<!--

var averageprice = 183486; // Average UK house price from last LR report

var LRchange = 0.31; // percent change in last quarter if -ve put - in front

var pricenow = 0 ;

var msquarter = 7884000000; // number of milliseconds in a quarter

var msincrease = (averageprice * ( LRchange / 100)) / msquarter;

function calc_amount(){

var LRrelease = new Date ("May 01, 2005"); // date to start LR figures from

var date2day = new Date (); // gets todays date

var timediff = date2day - LRrelease; // calcs time difference in ms

pricenow = averageprice + (timediff * msincrease); // works out price now

showhouseprice.innerText = 'Average UK house price is now £ ' + pricenow.toFixed(2) + ' (based on last Land registry figures)';

};

// End -->

</script>

</HEAD>

<BODY onLoad="calc_amount ()">

<div align="center" id="showhouseprice"></div>

</Body>

Edited by Kam

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • 302 Brexit, House prices and Summer 2020

    1. 1. Including the effects Brexit, where do you think average UK house prices will be relative to now in June 2020?


      • down 5% +
      • down 2.5%
      • Even
      • up 2.5%
      • up 5%



×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.