-
Notifications
You must be signed in to change notification settings - Fork 0
/
straight line basis.html.bak
74 lines (41 loc) · 2.1 KB
/
straight line basis.html.bak
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
<!DOCTYPE html>
<html>
<head><title>Calculate Depreciation | SLB</title>
<link rel="stylesheet" type="text/css" href="acc.css">
<link rel="icon" href="icon.ico">
<script type="text/javascript" language="javascript">
function calculate_stdepre(){
var cost=document.getElementById("cost").value;
var scrap=document.getElementById("scrap").value;
var life=document.getElementById("life").value;
var accumulated_depre=document.getElementById("accumulated_depre").value;
var calculated_depre1;
var calculated_depre;
var carrying_value;
calculated_depre1=cost-scrap;
calculated_depre=calculated_depre1/life;
carrying_value=(cost-accumulated_depre)-calculated_depre;
document.getElementById("calculated_depre").innerHTML = "Depreciation = " +calculated_depre;
document.getElementById("carrying_value").innerHTML = "Carrying value = " +carrying_value;
}
</script>
</head>
<body>
<body style="margin:50px 100px;">
<div class="bo">
<h1 class="heading">Depreciation from Straight Line Basis (SLB)</h1></br></br>
<form name="myForm" method="post">
<input type="text" placeholder="Enter the Cost" name="cost" id="cost">  
<input type="text" placeholder="Enter the Scrap Value" name="scrap" id="scrap"> </br></br></br>
<input type="text" placeholder="Enter the Useful Life" name="life" id="life"> 
<input type="text" placeholder="Enter the Accumulated Depreciation" name="accumulated_depre" id="accumulated_depre"> </br></br></br>
<center><div><input id="clickMe" type="button" value="Calculate" onclick="calculate_stdepre()" class="right"/>  
<input id="clickMe" value="Refresh" type="button" onClick="window.location.reload();" class="right"/></div></center></br></br>
<center><p style="font-size:50px; color:red; " id="calculated_depre"></p>
<p style="font-size:50px;color:red;" id="carrying_value"></p></center>
</form>
<a href="Home.html">
<img src="homebutton.png">
</a>
</body>
</html>