anchor.diff:  			<% 
   				next if i == 0
   				previous = monthly_data[i-1]
  +				is_last = i == monthly_data.length - 1
   				change = 0
   
   				# the first record is invalid because we don't have a full month always, and this means
  
positive.code: 					change = -1 if previous[:revenue] != 0 && month[:revenue] == 0
  				end
  			%>
  				<tr>
  					<td><%= month[:date].strftime('%d %b %Y') %></td>
  					<td class='numeric'><%= (month[:revenue] || 0).to_usd %></td>
  					<td class='numeric <%= change >= 0 ? 'up' : 'down' %>'><%= change.to_pct %></td>
  				</tr>
  			<% end %>
  		</tbody>
  
negative.code: 			<% 
  				next if i == 0
  				previous = weekly_data[i-1]
  				is_last = i == weekly_data.length - 1
  				change = 0
  
  				# the first record is invalid because we don't have a full week always, and this means
  