Skip to content

Instantly share code, notes, and snippets.

View fyllepo's full-sized avatar
🛸
Cruisin'

Philip Elliott fyllepo

🛸
Cruisin'
View GitHub Profile
function pmt(rate, noOfPayments, currentValue, futureValue, type){
var compoundInterest = Math.pow(1 + rate, noOfPayments);
return -(rate * (futureValue + (compoundInterest * currentValue))) / ((-1 + compoundInterest) * (1 + rate * (type)));
}
var interest = 0.06, // Annual interest
months = 36, // Lifetime of loan (in years)
present = 48790, // Present value of loan
future = 28600, // Future value of loan
beginning = 1; // Calculated at start of each period
add_filter( 'gform_pre_send_email', function ( $email, $message_format, $notification, $entry ) {
// stuff
}, 10, 3 );
.has-sidebar {
> div:nth-child(1) { width: 30% }
> div:nth-child(2) { width: 70% }
}
.has-split-view {
> div:nth-child(1),
> div:nth-child(2) { width: 33% }
> div:nth-child(3) { width: 34% }
}