summaryrefslogtreecommitdiff
path: root/design/templates/details/expenses.html
blob: a7e5547cc25a30a9bd507c4bb067575c8b345b8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
{% extends 'base.html' %}
{% load expense_total%}
{% load typogrify_tags %}

{% block pagetitle %}Luxagraf: Expenses{% endblock %}

{% block metadescription %}Think is costs a lot to drive around North America in a vintage Dodge Travco? Well, judge for yourself, here's how much is costs us.{% endblock %}
				
{% block primary %}		
    <main role="main">
    <article class="post--article">
            <header class="post--header">
                <h1 class="p-name entry-title post--title">Travco Trip Costs</h1>
                <time class="dt-updated post--date" datetime="{%now 'c'%}">Last updated: {%now "F"%} <span>{%now "j, Y"%}</span></time>
            </header>
        <div id="article" class="post--body post--body--single expense-wrapper">
            <p>We're extremely fortunate to be able to do this. We afford it because we saved for a long time and I continue to work on the road. At the same time, people are usually surprised at how little it costs to live this way. When we were planning this trip the people who posted their finances were invaluably helpful for calculating how much we needed to make this work so in the spirit of (hopefully, maybe) inspiring someone else to get out there, here is a rough breakdown of costs.</p>
            <h2>Upfront Costs</h2>
<table class="expense upfront"> 
	<caption>Initial Investments</caption>
    <thead>
        <tr> 
            <td>Category</td> 
			<td>Amount</td> 
		</tr> 
	</thead>
	<tbody>

    
    <tr class="row odd"> 
            <td>1969 Dodge Travco Motorhome</td> 
            <td class="cat-value">$7250.00 </td> 
		</tr> 
    <tr class="row even"> 
            <td>Travco restoration</td> 
            <td class="cat-value">$3000.00*</td> 
		</tr> 

    <tr class="row odd"> 
        <td>New wheels and Tires</td>
            <td class="cat-value">$3041.00</td> 
		</tr> 
    <tr class="row even"> 
            <td>Reupholstered Seats</td> 
            <td class="cat-value">$3600.00</td> 
		</tr> 

    <tr class="row odd"> 
            <td>DMV and insurance (taxes, title, plates -- $25 annual for tags)</td> 
            <td class="cat-value">$125.00 (annual)</td> 
		</tr> 

        <tr class="total even"> 
            <td>Total</td> 
            <td>$16,891.00</td> 
		</tr> 
	</tbody>
    <tfoot> 
		<tr> 
            <td colspan="2"><small>*This is a rough estimate, I did not itemize everything, so this figure is give or take $300</small></td> 
		</tr> 
	</tfoot> 
	</table>
    <p class="end">Here's how much we've spent each month we've spent on the road since we left in April 2017.</p>

    <h2>Monthly Expenses</h2>
{% regroup object_list by month as expenses_by_month %}{% for expenses in expenses_by_month %}
<table class="expense"> 
	<caption>{{ expenses.grouper.date|date:"F Y" }}</caption>
    <thead>
        <tr> 
            <td>Category</td> 
			<td>Amount</td> 
		</tr> 
	</thead>
	<tbody>
{% regroup expenses.list|dictsort:"category" by category as category_list %}
    {% for cat in categories %}
    <tr class="row {%cycle 'odd' 'even' %}"> 
            <td>{{cat.1}} </td> 
            <td class="cat-value">{% for clist in category_list %}{%if clist.grouper == cat.0%}${{clist.list|cat_total}} {%endif %}{%endfor%}</td> 
		</tr> 
{% endfor %}
        <tr class="total"> 
            <td>Total</td> 
            <td>${{category_list|expense_total}}</td> 
		</tr> 
	</tbody>
    <tfoot> 
		<tr> 
            <td colspan="2">{% for clist in category_list %}{% for item in clist.list %}{% if item.notes %}<small>*{{item.notes|safe}}</small>{%endif %}{%endfor%}{%endfor%}</td> 
		</tr> 

		<tr> 
            <td colspan="2"><small>{{ expenses.grouper.notes}}</small></td> 
        </tr> 
	</tfoot> 
	</table>
{% endfor %}
        </div>
        </article>
    </main>
{%endblock%}

{% block js %}
<script type="text/javascript">
window.onload = function() {
    //delay loading 
    zchk = document.getElementsByClassName("cat-value");
    for(var i=0; i<zchk.length; i++) {
        if (zchk[i].innerHTML == "") {
            zchk[i].innerHTML = "&ndash;";
        };
    }
}
</script>
{%endblock%}