<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://micras.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AGeneralPortStorage</id>
	<title>Module:GeneralPortStorage - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://micras.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AGeneralPortStorage"/>
	<link rel="alternate" type="text/html" href="https://micras.org/wiki/index.php?title=Module:GeneralPortStorage&amp;action=history"/>
	<updated>2026-11-29T10:36:46Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>https://micras.org/wiki/index.php?title=Module:GeneralPortStorage&amp;diff=359889&amp;oldid=prev</id>
		<title>NewZimiaGov at 22:43, 23 April 2025</title>
		<link rel="alternate" type="text/html" href="https://micras.org/wiki/index.php?title=Module:GeneralPortStorage&amp;diff=359889&amp;oldid=prev"/>
		<updated>2025-04-23T22:43:16Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:43, 23 April 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l4&quot;&gt;Line 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;local function getCurrentDate()&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;local function getCurrentDate()&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     local startDate = os.time({year = 1999, month = 8, day = 6})&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     local startDate = os.time({year = 1999, month = 8, day = 6})&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    local secondsInDay = 86400&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    local daysPerYear = 183&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     local currentDate = os.time()&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     local currentDate = os.time()&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    local daysPerYear = 183&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     local totalDaysElapsed = math.floor((currentDate - startDate) / &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;secondsInDay&lt;/ins&gt;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     local totalDaysElapsed = math.floor((currentDate - startDate) / &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;86400&lt;/del&gt;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     local &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;year &lt;/del&gt;= math.floor(&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;totalDaysElapsed / daysPerYear&lt;/del&gt;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    local yearFraction = totalDaysElapsed / daysPerYear&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     local &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;day &lt;/del&gt;= (&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;totalDaysElapsed % &lt;/del&gt;daysPerYear) + 1&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     local &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;psscYear &lt;/ins&gt;= math.floor(&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;yearFraction&lt;/ins&gt;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    return year, day&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     local &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;dayOfYear &lt;/ins&gt;= &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;math.floor&lt;/ins&gt;(&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(yearFraction - psscYear) * &lt;/ins&gt;daysPerYear) + 1&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;end&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;local function clamp(val, min, max)&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     return &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;psscYear, dayOfYear&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;if val &amp;lt; min then &lt;/del&gt;return &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;min end&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    if val &amp;gt; max then return max end&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    return val&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;end&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>NewZimiaGov</name></author>
	</entry>
	<entry>
		<id>https://micras.org/wiki/index.php?title=Module:GeneralPortStorage&amp;diff=359850&amp;oldid=prev</id>
		<title>NewZimiaGov: Created page with &quot;-- Module:GeneralPortStorageLog local p = {}  local function getCurrentDate()     local startDate = os.time({year = 1999, month = 8, day = 6})     local currentDate = os.time()     local daysPerYear = 183     local totalDaysElapsed = math.floor((currentDate - startDate) / 86400)     local year = math.floor(totalDaysElapsed / daysPerYear)     local day = (totalDaysElapsed % daysPerYear) + 1     return year, day end  local function clamp(val, min, max)     if val &lt; min the...&quot;</title>
		<link rel="alternate" type="text/html" href="https://micras.org/wiki/index.php?title=Module:GeneralPortStorage&amp;diff=359850&amp;oldid=prev"/>
		<updated>2025-04-23T19:49:59Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;-- Module:GeneralPortStorageLog local p = {}  local function getCurrentDate()     local startDate = os.time({year = 1999, month = 8, day = 6})     local currentDate = os.time()     local daysPerYear = 183     local totalDaysElapsed = math.floor((currentDate - startDate) / 86400)     local year = math.floor(totalDaysElapsed / daysPerYear)     local day = (totalDaysElapsed % daysPerYear) + 1     return year, day end  local function clamp(val, min, max)     if val &amp;lt; min the...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- Module:GeneralPortStorageLog&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
local function getCurrentDate()&lt;br /&gt;
    local startDate = os.time({year = 1999, month = 8, day = 6})&lt;br /&gt;
    local currentDate = os.time()&lt;br /&gt;
    local daysPerYear = 183&lt;br /&gt;
    local totalDaysElapsed = math.floor((currentDate - startDate) / 86400)&lt;br /&gt;
    local year = math.floor(totalDaysElapsed / daysPerYear)&lt;br /&gt;
    local day = (totalDaysElapsed % daysPerYear) + 1&lt;br /&gt;
    return year, day&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function clamp(val, min, max)&lt;br /&gt;
    if val &amp;lt; min then return min end&lt;br /&gt;
    if val &amp;gt; max then return max end&lt;br /&gt;
    return val&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.generateStorageLog()&lt;br /&gt;
    local year, day = getCurrentDate()&lt;br /&gt;
    local dateStr = string.format(&amp;quot;Day %d, Y.%d&amp;quot;, day, year)&lt;br /&gt;
&lt;br /&gt;
    local dryCapacity = 6500000  -- m³&lt;br /&gt;
    local coldCapacity = 1800000 -- m³&lt;br /&gt;
    local liquidCapacity = 800000 -- m³&lt;br /&gt;
    local yardCapacity = 3200000 -- TEU&lt;br /&gt;
&lt;br /&gt;
    local dryStored = math.random(4000000, 6900000)&lt;br /&gt;
    local coldStored = math.random(1000000, 1900000)&lt;br /&gt;
    local liquidStored = math.random(500000, 850000)&lt;br /&gt;
    local yardUsage = math.random(2500000, 3400000)&lt;br /&gt;
&lt;br /&gt;
    local dryConsumed = math.random(100000, 300000)&lt;br /&gt;
    local coldConsumed = math.random(80000, 200000)&lt;br /&gt;
    local liquidConsumed = math.random(40000, 120000)&lt;br /&gt;
&lt;br /&gt;
    local dryDispatched = math.random(100000, 250000)&lt;br /&gt;
    local coldDispatched = math.random(60000, 180000)&lt;br /&gt;
    local liquidDispatched = math.random(30000, 100000)&lt;br /&gt;
&lt;br /&gt;
    local overflowFlag = yardUsage &amp;gt; yardCapacity and &amp;quot;Yes – Overflow protocols active&amp;quot; or &amp;quot;No – Operating within limits&amp;quot;&lt;br /&gt;
&lt;br /&gt;
    local log = &amp;quot;{| class=\&amp;quot;wikitable\&amp;quot; style=\&amp;quot;width:100%\&amp;quot;\n&amp;quot;&lt;br /&gt;
    log = log .. string.format(&amp;quot;! colspan=2 | General Port of Lake Morovia – Storage Logistics Log (%s)\n&amp;quot;, dateStr)&lt;br /&gt;
    log = log .. &amp;quot;|-\n&amp;quot;&lt;br /&gt;
    log = log .. string.format(&amp;quot;| &amp;#039;&amp;#039;&amp;#039;Dry Storage Inventory&amp;#039;&amp;#039;&amp;#039; || %d m³\n&amp;quot;, dryStored)&lt;br /&gt;
    log = log .. &amp;quot;|-\n&amp;quot;&lt;br /&gt;
    log = log .. string.format(&amp;quot;| &amp;#039;&amp;#039;&amp;#039;Refrigerated Storage Inventory&amp;#039;&amp;#039;&amp;#039; || %d m³\n&amp;quot;, coldStored)&lt;br /&gt;
    log = log .. &amp;quot;|-\n&amp;quot;&lt;br /&gt;
    log = log .. string.format(&amp;quot;| &amp;#039;&amp;#039;&amp;#039;Liquid Bulk Storage Inventory&amp;#039;&amp;#039;&amp;#039; || %d m³\n&amp;quot;, liquidStored)&lt;br /&gt;
    log = log .. &amp;quot;|-\n&amp;quot;&lt;br /&gt;
    log = log .. string.format(&amp;quot;| &amp;#039;&amp;#039;&amp;#039;Container Yard Usage&amp;#039;&amp;#039;&amp;#039; || %d TEU\n&amp;quot;, yardUsage)&lt;br /&gt;
    log = log .. &amp;quot;|-\n&amp;quot;&lt;br /&gt;
    log = log .. string.format(&amp;quot;| &amp;#039;&amp;#039;&amp;#039;Container Yard Overflow&amp;#039;&amp;#039;&amp;#039; || %s\n&amp;quot;, overflowFlag)&lt;br /&gt;
    log = log .. &amp;quot;|-\n&amp;quot;&lt;br /&gt;
    log = log .. string.format(&amp;quot;| &amp;#039;&amp;#039;&amp;#039;Dry Goods Consumed&amp;#039;&amp;#039;&amp;#039; || %d m³\n&amp;quot;, dryConsumed)&lt;br /&gt;
    log = log .. &amp;quot;|-\n&amp;quot;&lt;br /&gt;
    log = log .. string.format(&amp;quot;| &amp;#039;&amp;#039;&amp;#039;Refrigerated Goods Consumed&amp;#039;&amp;#039;&amp;#039; || %d m³\n&amp;quot;, coldConsumed)&lt;br /&gt;
    log = log .. &amp;quot;|-\n&amp;quot;&lt;br /&gt;
    log = log .. string.format(&amp;quot;| &amp;#039;&amp;#039;&amp;#039;Liquid Bulk Consumed&amp;#039;&amp;#039;&amp;#039; || %d m³\n&amp;quot;, liquidConsumed)&lt;br /&gt;
    log = log .. &amp;quot;|-\n&amp;quot;&lt;br /&gt;
    log = log .. string.format(&amp;quot;| &amp;#039;&amp;#039;&amp;#039;Dry Goods Dispatched&amp;#039;&amp;#039;&amp;#039; || %d m³\n&amp;quot;, dryDispatched)&lt;br /&gt;
    log = log .. &amp;quot;|-\n&amp;quot;&lt;br /&gt;
    log = log .. string.format(&amp;quot;| &amp;#039;&amp;#039;&amp;#039;Refrigerated Goods Dispatched&amp;#039;&amp;#039;&amp;#039; || %d m³\n&amp;quot;, coldDispatched)&lt;br /&gt;
    log = log .. &amp;quot;|-\n&amp;quot;&lt;br /&gt;
    log = log .. string.format(&amp;quot;| &amp;#039;&amp;#039;&amp;#039;Liquid Bulk Dispatched&amp;#039;&amp;#039;&amp;#039; || %d m³\n&amp;quot;, liquidDispatched)&lt;br /&gt;
    log = log .. &amp;quot;|}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
    return log&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.dailyStorageSummary()&lt;br /&gt;
    local year, day = getCurrentDate()&lt;br /&gt;
    local header = string.format(&amp;quot;&amp;#039;&amp;#039;&amp;#039;General Port of Lake Morovia: Storage Log – Day %d, Year %d PSSC&amp;#039;&amp;#039;&amp;#039;\n&amp;quot;, day, year)&lt;br /&gt;
    return header .. p.generateStorageLog()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>NewZimiaGov</name></author>
	</entry>
</feed>