Coronavirus 3 Day Prediction
In gawk, as of 28 Jan, daily for 2 weeks, weekly for 100 days:<p><pre><code>    #!&#x2F;usr&#x2F;bin&#x2F;gawk -f
    
    BEGIN {
        # Data as of 2020-1-28
        doublerate = 1.71
        dailyrate = 2&#x2F;doublerate
        cases = 6063
        deaths = 132
    
        now = mktime( &quot;2020 01 28 00 00 00&quot; )
    
        maxdays = 14
        interval = 1
    
        printf( &quot;| %3s | %-12s | s | s |\n&quot;, &quot;day&quot;, &quot;date&quot;, &quot;deaths&quot;, &quot;cases&quot; )
        printf( &quot;|%-5s|s|s|s|\n&quot;, &quot;:---&quot;, &quot;------------:&quot;, &quot;------------:&quot;, &quot;-------------:&quot; )
        for(day=1; day&lt;=maxdays; day+=interval ) {
     date = strftime( &quot;%b %d, %Y&quot;, now + day * 86400 )
     printf( &quot;| %3i | %-12s | %&#x27;12i | %&#x27;14i |\n&quot;, day, date, deaths * (dailyrate^day), cases * (dailyrate^day) )
        }
    
        printf( &quot;\n\n&quot; )
    
        maxdays = 100
        interval = 7
    
        printf( &quot;| %3s | %-12s | s | s |\n&quot;, &quot;day&quot;, &quot;date&quot;, &quot;deaths&quot;, &quot;cases&quot; )
        printf( &quot;|%-5s|s|s|s|\n&quot;, &quot;:---&quot;, &quot;------------:&quot;, &quot;------------:&quot;, &quot;-------------:&quot; )
        for(day=1; day&lt;=maxdays; day+=interval ) {
     date = strftime( &quot;%b %d, %Y&quot;, now + day * 86400 )
     printf( &quot;| %3i | %-12s | %&#x27;12i | %&#x27;14i |\n&quot;, day, date, deaths * (dailyrate^day), cases * (dailyrate^day) )
        }
    
        printf( &quot;\n&quot; )
    
    }</code></pre>