<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.runerealm.org/index.php?action=history&amp;feed=atom&amp;title=Module%3AChangePerDay</id>
	<title>Module:ChangePerDay - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.runerealm.org/index.php?action=history&amp;feed=atom&amp;title=Module%3AChangePerDay"/>
	<link rel="alternate" type="text/html" href="https://wiki.runerealm.org/index.php?title=Module:ChangePerDay&amp;action=history"/>
	<updated>2026-06-15T17:12:56Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://wiki.runerealm.org/index.php?title=Module:ChangePerDay&amp;diff=448&amp;oldid=prev</id>
		<title>Alex: Created page with &quot;-- &lt;nowiki&gt; -- -- Implements {{ChangePerDay}} --  local p = {} local round = require( &#039;Module:Number&#039; )._round  function p._change( args )     local lang = mw.language.getContentLanguage()      local price = tonumber( args[1] ) or 1     local last = tonumber( args[2] ) or 1     local date = args[3] or &#039;January 1&#039;     local lastDate = args[4] or &#039;July 1&#039;      local diff = lang:formatDate( &#039;U&#039;, date ) - lang:formatDate( &#039;U&#039;, lastDate )     local ret      diff = diff / 8640...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.runerealm.org/index.php?title=Module:ChangePerDay&amp;diff=448&amp;oldid=prev"/>
		<updated>2024-10-11T22:09:18Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;-- &amp;lt;nowiki&amp;gt; -- -- Implements {{ChangePerDay}} --  local p = {} local round = require( &amp;#039;Module:Number&amp;#039; )._round  function p._change( args )     local lang = mw.language.getContentLanguage()      local price = tonumber( args[1] ) or 1     local last = tonumber( args[2] ) or 1     local date = args[3] or &amp;#039;January 1&amp;#039;     local lastDate = args[4] or &amp;#039;July 1&amp;#039;      local diff = lang:formatDate( &amp;#039;U&amp;#039;, date ) - lang:formatDate( &amp;#039;U&amp;#039;, lastDate )     local ret      diff = diff / 8640...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- &amp;lt;nowiki&amp;gt;&lt;br /&gt;
--&lt;br /&gt;
-- Implements {{ChangePerDay}}&lt;br /&gt;
--&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
local round = require( &amp;#039;Module:Number&amp;#039; )._round&lt;br /&gt;
&lt;br /&gt;
function p._change( args )&lt;br /&gt;
    local lang = mw.language.getContentLanguage()&lt;br /&gt;
&lt;br /&gt;
    local price = tonumber( args[1] ) or 1&lt;br /&gt;
    local last = tonumber( args[2] ) or 1&lt;br /&gt;
    local date = args[3] or &amp;#039;January 1&amp;#039;&lt;br /&gt;
    local lastDate = args[4] or &amp;#039;July 1&amp;#039;&lt;br /&gt;
&lt;br /&gt;
    local diff = lang:formatDate( &amp;#039;U&amp;#039;, date ) - lang:formatDate( &amp;#039;U&amp;#039;, lastDate )&lt;br /&gt;
    local ret&lt;br /&gt;
&lt;br /&gt;
    diff = diff / 86400 -- diff / no. secs in a day&lt;br /&gt;
&lt;br /&gt;
    if diff &amp;lt; 1 then&lt;br /&gt;
        ret = price / last - 1&lt;br /&gt;
    else&lt;br /&gt;
        ret = ( price / last - 1 ) / math.ceil( diff )&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    return round( ret, 3 )&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Alex</name></author>
	</entry>
</feed>