/**
 * Return a color based on starting and
 * ending point and current time
 *
 * @param  {number} start    starting point
 * @param  {number} end      ending point
 * @param  {current} current current time
 * @return {string}          color
 */
function returnColor(start, end, current) {
  const total = (end - start) / 86400000;
  const part = (current - start) / 86400000;
  const ratio = part / total;
  return `hsla(${(1 - ratio) * 200}, 100%, 75%, .3)`;
}

function returnColorO(end, current) {
  const diff = (current - end) / 86400000;
  return `hsla(0, 100%, ${50 / Math.pow(2, diff)}%, .3)`;
}

module.exports = {
  returnColor,
  returnColorO,
};

@@ -276,32 +276,151 @@
 end, current) %7B%0A
+  const currentRounded = (current + (86400000 - (current %25 86400000))) +%0A    (new Date().getTimezoneOffset() * 60000);%0A
   const total = 
@@ -468,16 +468,23 @@
 (current
+Rounded
  - start
@@ -614,32 +614,151 @@
 end, current) %7B%0A
+  const currentRounded = (current + (86400000 - (current %25 86400000))) +%0A    (new Date().getTimezoneOffset() * 60000);%0A
   const diff = (
@@ -764,16 +764,23 @@
 (current
+Rounded
  - end) 

Update color.js to calculate based on rounded dates